original_docstring: Turn a text string into an identifier.
  
      Turn the provided string into an identifier, unless it already is one.
  
      Args:
          text: A string
  
      Returns:
          A string representing the identifier.  For example:
          "this is an example" would be turned into @this_is_an_example,
          but @another_example would just return as @another_example.
      
docstring: Turn a text string into an identifier.
  Turn the provided string into an identifier, unless it already is one.
docstring_tokens: Turn a text string into an identifier . Turn the provided string into an identifier unless it already is one .
code: def text_to_identifier(text):
      """Turn a text string into an identifier.
  
      Turn the provided string into an identifier, unless it already is one.
  
      Args:
          text: A string
  
      Returns:
          A string representing the identifier.  For example:
          "this is an example" would be turned into @this_is_an_example,
          but @another_example would just return as @another_example.
      """
      if text == "":
          return ""
      elif is_identifier(text):
          return text
      else:
          return "@" + re.sub('[^a-z0-9_]+', '_', text.strip().lower().replace('-','')).strip('_')
code_tokens: def text_to_identifier ( text ) : if text == "" : return "" elif is_identifier ( text ) : return text else : return "@" + re . sub ( '[^a-z0-9_]+' , '_' , text . strip ( ) . lower ( ) . replace ( '-' , '' ) ) . strip ( '_' )
short_docstring: Turn a text string into an identifier.
short_docstring_tokens: Turn a text string into an identifier .
comment: """Turn a text string into an identifier.
  
      Turn the provided string into an identifier, unless it already is one.
  
      Args:
          text: A string
  
      Returns:
          A string representing the identifier.  For example:
          "this is an example" would be turned into @this_is_an_example,
          but @another_example would just return as @another_example.
      """