code: def testFromArraySpecToTensorSpec(self):
      array_spec = specs.ArraySpec([1, 2, 3], np.int32)
      tensor_spec = specs.TensorSpec.from_spec(array_spec)
      self.assertEqual(array_spec.shape, tensor_spec.shape)
      self.assertEqual(
          array_spec.dtype, tensor_spec.dtype.as_numpy_dtype(0)
      )
      self.assertEqual(array_spec.name, tensor_spec.name)
      self.assertEqual(type(tensor_spec), specs.tensor_spec.TensorSpec)
  
file_path: agents/tf_agents/specs/specs_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tf_agents import specs
  from tf_agents.utils import test_utils
label_desc: Use image node_id 2 for calling the SpecWithTensorflowTest obj's underlying member method code with example usage: obj.testFromArraySpecToTensorSpec() without return types