code: def testExclusive(self, dtype):
      if dtype == tf.string or dtype == tf.bool:
          self.skipTest("Not compatible with string or bool type.")
      spec = tensor_spec.TensorSpec((2, 3), dtype=dtype)
      self.assertIs(
          tensor_spec.is_discrete(spec)
          ^ tensor_spec.is_continuous(spec),
          True,
      )
  
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 3 for calling the TensorSpecTypeTest obj's underlying member method code with example usage: obj.testExclusive(dtype) without return types