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 from_type_spec(cls, type_spec):
      return cls(None, None, None, type_spec)
  
imports: import tensorflow
  from tensorflow_hub import tf_utils
label_desc: Use image node_id 2 for calling the ParsedTensorInfo obj's underlying member method code with example usage: obj.from_type_spec(cls, type_spec) and returns: cls