code: def testOnlyTensorSpecIsSupported(self, dtype):
      sparse_spec = tf.SparseTensorSpec([1], tf.int32)
      with self.assertRaisesRegex(
          NotImplementedError, "not supported.*Sparse"
      ):
          _ = tensor_spec.zero_spec_nest(sparse_spec)
      ragged_spec = tf.RaggedTensorSpec(ragged_rank=0, shape=[3, 5])
      with self.assertRaisesRegex(
          NotImplementedError, "not supported.*Ragged"
      ):
          _ = tensor_spec.zero_spec_nest(ragged_spec)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tf_agents.specs import array_spec
  from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import time_step
label_desc: Use image node_id 4 for calling the TensorSpecZeroTest obj's underlying member method code with example usage: obj.testOnlyTensorSpecIsSupported(dtype) without return types