code: def CreateShapeFromNumpy(value):  # pylint: disable=invalid-name
      """Create a Shape from a Numpy array or a nested tuple structure thereof.
  
      Args:
        value: Numpy array or (possibly nested) tuple structure that bottoms out in
          Numpy arrays.
  
      Returns:
        A Shape object.
      """
      if isinstance(value, tuple):
          return Shape(
              xla_data_pb2.TUPLE,
              [CreateShapeFromNumpy(component) for component in value],
          )
      else:
          return _CreateShapeFromNumpy(value)
  
file_path: tensorflow-upstream/third_party/xla/xla/python_api/xla_shape.py
imports: import numpy
  from local_xla.xla import xla_data_pb2
  from xla.python_api import types_
label_desc: Use image node_id 2 for calling a global function with example usage: CreateShapeFromNumpy(value) and returns: Shape, _CreateShapeFromNumpy