docstr: Checks that assert_binary raises no exceptions for valid input.
docstr_tok: ["Checks","that","assert_binary","raises","no","exceptions","for","valid","input","."]
code: def test_assert_binary_exception_not_raised(self, dtype):
      """Checks that assert_binary raises no exceptions for valid input."""
      tensor_size = np.random.randint(3) + 1
      tensor_shape = np.random.randint(
          1, 10, size=(tensor_size)
      ).tolist()
  
      # Vector with random zeros and ones.
      vector = np.random.randint(2, size=tensor_shape)
      vector = tf.convert_to_tensor(value=vector, dtype=dtype)
  
      self.assert_exception_is_not_raised(
          asserts.assert_binary, shapes=[], tensor=vector
      )
  
imports: from absl.testing import flagsaver
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.util import asserts
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 23 for calling the AssertsTest obj's underlying member method code with example usage: obj.test_assert_binary_exception_not_raised(dtype) without return types