code: def TensorSpec(shape, dtype=ScalarType.Float):
      return (shape, dtype)
  
file_path: pytorch/torch/backends/_coreml/preprocess.py
imports: import hashlib
  import json
  from typing import Dict, Tuple
  import coremltools
  from coremltools.converters.mil.input_types import TensorType
  from coremltools.converters.mil.mil import types
  from coremltools.models.neural_network import quantization_utils
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: TensorSpec(shape, dtype) and returns: shape,  dtype