original_docstring:  Checks if a user's user_type is of a specific UserType Enum 
docstring: Checks if a user's user_type is of a specific UserType Enum
docstring_tokens: Checks if a user ' s user_type is of a specific UserType Enum
code: def is_type(user_type, enum_type):
      """ Checks if a user's user_type is of a specific UserType Enum """
      try:
          return user_type == UserType[enum_type]
      except KeyError:
          return
code_tokens: def is_type ( user_type , enum_type ) : try : return user_type == UserType [ enum_type ] except KeyError : return
short_docstring: Checks if a user's user_type is of a specific UserType Enum
short_docstring_tokens: Checks if a user ' s user_type is of a specific UserType Enum
comment: """ Checks if a user's user_type is of a specific UserType Enum """