code: def CreateShapeFromDtypeAndTuple(
      dtype, shape_tuple
  ):  # pylint: disable=invalid-name
      """Create a shape from a Numpy dtype and a sequence of nonnegative integers.
  
      Args:
        dtype: a numpy dtype, e.g. np.dtype('int32').
        shape_tuple: a sequence of nonnegative integers.
  
      Returns:
        A Shape object.
      """
      element_type = types_.MAP_DTYPE_TO_RECORD[
          str(dtype)
      ].primitive_type
      return Shape(element_type, shape_tuple)
  
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 3 for calling a global function with example usage: CreateShapeFromDtypeAndTuple(dtype, shape_tuple) and returns: Shape