code: def _normalize_pylist(item):
      """Convert all (possibly nested) np.arrays contained in item to list."""
      # convert np.arrays in current level to list
      if not isinstance(item, (list, np.ndarray)):
          return item
      level = (
          x.tolist() if isinstance(x, np.ndarray) else x for x in item
      )
      return [
          _normalize_pylist(el)
          if isinstance(item, (list, np.ndarray))
          else el
          for el in level
      ]
  
file_path: tensorflow-upstream/tensorflow/python/ops/ragged/ragged_constant_value_op_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor_value
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling a global function with example usage: _normalize_pylist(item) and returns: unknown, item