class_docstr: Describes a numpy array or scalar shape and dtype.
  
  An `ArraySpec` allows an API to describe the arrays that it accepts or
  returns, before that array exists.
  The equivalent version describing a `tf.Tensor` is `TensorSpec`.
docstr: Construct a spec from the given spec.
docstr_tok: ["Construct","a","spec","from","the","given","spec","."]
code: def from_spec(spec):
      """Construct a spec from the given spec."""
      return ArraySpec(spec.shape, spec.dtype, spec.name)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numbers
  import gin
  import numpy
  import tensorflow
label_desc: Use image node_id 11 for calling the ArraySpec obj's underlying member method code with example usage: obj.from_spec(spec) and returns: ArraySpec