parameters: (text)
return_statement: return text
docstring: Returns the specified string parsed to an int or float.
      
      If no number can be parsed, the original string is returned.
      
      To determine whether the number is an int or float, the functions `is_int` and `is_float` are
      used.
      Args:
        text(string): text to parse to a number
      Returns:
        : int/float/str -- depending on successful parsing, a number or a string is returned
docstring_summary: Returns the specified string parsed to an int or float.
      
      If no number can be parsed, the original string is returned.
      
      To determine whether the number is an int or float, the functions `is_int` and `is_float` are
      used.
      Args:
        text(string): text to parse to a number
      Returns:
        : int/float/str -- depending on successful parsing, a number or a string is returned
docstring_tokens: Returns the specified string parsed to an int or float . If no number can be parsed the original string is returned . To determine whether the number is an int or float the functions is_int and is_float are used . Args : text ( string ) : text to parse to a number Returns : : int / float / str -- depending on successful parsing a number or a string is returned
function: def parse_number(text):
      """Returns the specified string parsed to an int or float.
      
      If no number can be parsed, the original string is returned.
      
      To determine whether the number is an int or float, the functions `is_int` and `is_float` are
      used.
      Args:
        text(string): text to parse to a number
      Returns:
        : int/float/str -- depending on successful parsing, a number or a string is returned
      """
      if is_int(text):
          return int(text)
      elif is_float(text):
          return float(text)
      return text
function_tokens: def parse_number ( text ) : if is_int ( text ) : return int ( text ) elif is_float ( text ) : return float ( text ) return text