parameters: (nested_list)
return_statement: return result
docstring: Get the shape of a nested_list.
docstring_summary: Get the shape of a nested_list.
docstring_tokens: Get the shape of a nested_list .
function: def _get_nested_list_shape(nested_list):
      """
      Get the shape of a nested_list.
      """
      result = []
      while isinstance(nested_list, list):
          result.append(len(nested_list))
          nested_list = nested_list[0]
      return result
function_tokens: def _get_nested_list_shape ( nested_list ) : result = [ ] while isinstance ( nested_list , list ) : result . append ( len ( nested_list ) ) nested_list = nested_list [ 0 ] return result