code: def create_tuple_value(py_tuple):
      """
      Return type of Tuple
      """
      tp_val = pm.TupleValue()
      for t in py_tuple:
          item_val = tp_val.values.add()
          item_type = item_val.type  # ValueType
          if isinstance(t, int):
              v = create_scalar_value(t)
              item_val.immediateValue.i = t
              item_type = v.type
          elif isinstance(t, np.ndarray):
              v = create_tensor_value(t)
              item_val.immediateValue.tensor.CopyFrom(
                  v.immediateValue.tensor
              )
              item_type.tensorType.CopyFrom(v.type.tensorType)
          else:
              raise NotImplementedError()
      return tp_val
  
imports: import os
  import numpy
  import coremltools.proto.FeatureTypes_pb2
  import coremltools.proto.MIL_pb2
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.types import BUILTIN_TO_PROTO_TYPES, builtin_to_string, numpy_type_to_builtin_type, type_to_builtin_type
  from coremltools.converters.mil.mil.types.type_mapping import np_val_to_py_type
  from coremltools.models.utils import _WEIGHTS_DIR_NAME, _WEIGHTS_FILE_NAME
label_desc: Use image node_id 12 for calling a global function with example usage: create_tuple_value(py_tuple) and returns: tp_val