original_docstring: 
      Take iteratively a list of lists (at any depth level) and replace strings with
      the corresponding values in the ``replacements`` dictionary, leaving other
      types of values (floats, ints, ...) untouched.
  
      :return: a new list_of_lists with the same shape, with strings replaced by numbers.
      :raise ValueError: if one of the values is not found
      
docstring: Take iteratively a list of lists (at any depth level) and replace strings with
  the corresponding values in the ``replacements`` dictionary, leaving other
  types of values (floats, ints, ...) untouched.
docstring_tokens: Take iteratively a list of lists ( at any depth level ) and replace strings with the corresponding values in the ` ` replacements ` ` dictionary leaving other types of values ( floats ints ... ) untouched .
code: def replace_symbols_with_values(list_of_lists, replacements):
      """
      Take iteratively a list of lists (at any depth level) and replace strings with
      the corresponding values in the ``replacements`` dictionary, leaving other
      types of values (floats, ints, ...) untouched.
  
      :return: a new list_of_lists with the same shape, with strings replaced by numbers.
      :raise ValueError: if one of the values is not found
      """
      if isinstance(list_of_lists, str):  # Check this first, a str is also Iterable
          try:
              return replacements[list_of_lists]
          except KeyError:
              raise ValueError("Unknown replacement '{}'".format(list_of_lists))
      elif isinstance(list_of_lists, Iterable):
          return [
              replace_symbols_with_values(elem, replacements=replacements)
              for elem in list_of_lists
          ]
      else:
          return list_of_lists
code_tokens: def replace_symbols_with_values ( list_of_lists , replacements ) : if isinstance ( list_of_lists , str ) : try : return replacements [ list_of_lists ] except KeyError : raise ValueError ( "Unknown replacement '{}'" . format ( list_of_lists ) ) elif isinstance ( list_of_lists , Iterable ) : return [ replace_symbols_with_values ( elem , replacements = replacements ) for elem in list_of_lists ] else : return list_of_lists
short_docstring: Take iteratively a list of lists (at any depth level) and replace strings with
  the corresponding values in the ``replacements`` dictionary, leaving other
  types of values (floats, ints, ...) untouched.
short_docstring_tokens: Take iteratively a list of lists ( at any depth level ) and replace strings with the corresponding values in the ` ` replacements ` ` dictionary leaving other types of values ( floats ints ... ) untouched .
comment: """
      Take iteratively a list of lists (at any depth level) and replace strings with
      the corresponding values in the ``replacements`` dictionary, leaving other
      types of values (floats, ints, ...) untouched.
  
      :return: a new list_of_lists with the same shape, with strings replaced by numbers.
      :raise ValueError: if one of the values is not found
      """$SEP$# Check this first, a str is also Iterable