def get_user(user_or_username=None):
if user_or_username is None:<EOL><INDENT>return None<EOL><DEDENT>if hasattr(user_or_username, "<STR_LIT>"):<EOL><INDENT>return ploneapi.user.get(user_or_username.getUserId())<EOL><DEDENT>return ploneapi.user.get(userid=u.to_string(user_or_username))<EOL>
Return Plone User

    :param user_or_username: Plone user or user id
    :type groupname:  PloneUser/MemberData/str
    :returns: Plone MemberData
    :rtype: object