original_docstring: 
          Converts the given text to an enum.
          
docstring: Converts the given text to an enum.
docstring_tokens: Converts the given text to an enum .
code: def parse_enum(enum_type, text):
          """
          Converts the given text to an enum.
          """
          if text is None:
              return None
          try:
              return enum_type(text)
          except ValueError:
              return None
code_tokens: def parse_enum ( enum_type , text ) : if text is None : return None try : return enum_type ( text ) except ValueError : return None
short_docstring: Converts the given text to an enum.
short_docstring_tokens: Converts the given text to an enum .
comment: """
          Converts the given text to an enum.
          """