original_docstring:  Checks if a user's user_type is any of a specific UserType Enum 
docstring: Checks if a user's user_type is any of a specific UserType Enum
docstring_tokens: Checks if a user ' s user_type is any of a specific UserType Enum
code: def is_types(user_type, enum_types_str):
      """ Checks if a user's user_type is any of a specific UserType Enum """
      try:
          enum_types = enum_types_str.split(',')
          return any([enum_type for enum_type in enum_types
                      if user_type == UserType[enum_type]])
      except KeyError:
          return
code_tokens: def is_types ( user_type , enum_types_str ) : try : enum_types = enum_types_str . split ( ',' ) return any ( [ enum_type for enum_type in enum_types if user_type == UserType [ enum_type ] ] ) except KeyError : return
short_docstring: Checks if a user's user_type is any of a specific UserType Enum
short_docstring_tokens: Checks if a user ' s user_type is any of a specific UserType Enum
comment: """ Checks if a user's user_type is any of a specific UserType Enum """