class_docstr: This is a tensor-looking object with information about a Tensor.
  
  This class provides a subset of methods and attributes provided by real
  instantiated Tensor/SparseTensors/CompositeTensors in a graph such that code
  designed to handle instances of it would mostly work in real Tensors.
class_docstr_tok: ["This","is","a","tensor-looking","object","with","information","about","a","Tensor",".","This","class","provides","a","subset","of","methods","and","attributes","provided","by","real","instantiated","Tensor\/SparseTensors\/CompositeTensors","in","a","graph","such","that","code","designed","to","handle","instances","of","it","would","mostly","work","in","real","Tensors","."]
code: def __init__(self, dtype, shape, is_sparse, type_spec=None):
      if type_spec is not None:
          assert dtype is None and shape is None and is_sparse is None
          self._type_spec = type_spec
      elif is_sparse:
          self._type_spec = tf.SparseTensorSpec(shape, dtype)
      else:
          self._type_spec = tf.TensorSpec(shape, dtype)
  
imports: import tensorflow
  from tensorflow_hub import tf_utils
label_desc: Use image node_id 1 to create a new ParsedTensorInfo object from inherited base classes: object with example: obj = ParsedTensorInfo(dtype, shape, is_sparse, type_spec)