code: def testAddOuterDimNoneToSpecs(self, dtype):
      if dtype == tf.string:
          self.skipTest("Not compatible with string type.")
      nested_spec = example_nested_tensor_spec(dtype)
      outer_dim = None
      self.assertEqual(
          tensor_spec.add_outer_dim(nested_spec, outer_dim),
          example_nested_tensor_spec(dtype, (outer_dim,)),
      )
  
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 11 for calling the BoundedTensorSpecSampleTest obj's underlying member method code with example usage: obj.testAddOuterDimNoneToSpecs(dtype) without return types