code: def to_coreml_tensor_type(
      name: str, tensor: Tensor
  ) -> "ct.TensorType":
      # TODO: rdar://115845948 ([Executorch] Handle inputs of shapes with dynamic dimensions)
      return ct.TensorType(
          name=name,
          dtype=torch_to_mil_types[tensor.dtype],
          shape=tensor.shape,
      )
  
imports: from typing import List
  from torch import Tensor
  import coremltools
  from .torchscript_utils import torch_to_mil_types
label_desc: Use image node_id 1 for calling a global function with example usage: to_coreml_tensor_type(name, tensor) and returns: ct