parameters: (x, deep=False)
docstring: returns 1 for [], 2 for [[]], etc.
      :parm x - a list
      :param deep - whether or not to count a level when not all elements in
      that level are lists.
      e.g. [[], ""] has a list depth of 1 with depth=False, 2 with depth=True
docstring_summary: returns 1 for [], 2 for [[]], etc.
      :parm x - a list
      :param deep - whether or not to count a level when not all elements in
      that level are lists.
      e.g. [[], ""] has a list depth of 1 with depth=False, 2 with depth=True
docstring_tokens: returns 1 for [] 2 for [[ ]] etc . : parm x - a list : param deep - whether or not to count a level when not all elements in that level are lists . e . g . [[ ] ] has a list depth of 1 with depth = False 2 with depth = True
function: def list_depth(x, deep=False):
      """
      returns 1 for [], 2 for [[]], etc.
      :parm x - a list
      :param deep - whether or not to count a level when not all elements in
      that level are lists.
      e.g. [[], ""] has a list depth of 1 with depth=False, 2 with depth=True
      """
      if isinstance(x, int):
          return 0
      elif len(x) > 0 and (deep or all([isinstance(y, list) for y in x])):
          return 1 + max([list_depth(y, deep=deep) for y in x])
      else:
          return 1
function_tokens: def list_depth ( x , deep = False ) : if isinstance ( x , int ) : return 0 elif len ( x ) > 0 and ( deep or all ( [ isinstance ( y , list ) for y in x ] ) ) : return 1 + max ( [ list_depth ( y , deep = deep ) for y in x ] ) else : return 1