class_docstr: Describes a tf.Tensor.
  
  Metadata for describing the `tf.Tensor` objects accepted or returned
  by some TensorFlow APIs.
code: def from_spec(cls, spec, name=None):
      return cls(spec.shape, spec.dtype, name or spec.name)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensorflow.python.framework import common_shapes
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
label_desc: Use image node_id 2 for calling the TensorSpec obj's underlying member method code with example usage: obj.from_spec(cls, spec, name) and returns: cls