code: def _get_type_spec(value):
      if isinstance(value, ParsedTensorInfo):
          return value.type_spec
      elif tf_utils.is_composite_tensor(value):
          return tf_utils.get_composite_tensor_type_spec(value)
      else:
          return tf.TensorSpec.from_tensor(value)
  
imports: import tensorflow
  from tensorflow_hub import tf_utils
label_desc: Use image node_id 3 for calling a global function with example usage: _get_type_spec(value) and returns: value, tf_utils, tf