code: def test_scramble_generating_matrices_with_dtype(self):
      dim = 6
      num_results = 8
      num_digits = 3  # ceil(log2(num_results))
      seed = (2, 3)
  
      generating_matrices = qmc.sobol_generating_matrices(
          dim, num_results, num_digits
      )
  
      scrambling_matrices = qmc.random_scrambling_matrices(
          dim, num_digits, seed
      )
  
      for dtype in [tf.int32, tf.int64]:
          actual = qmc.scramble_generating_matrices(
              generating_matrices,
              scrambling_matrices,
              num_digits,
              dtype=dtype,
              validate_args=True,
          )
  
          with self.subTest("Shape"):
              self.assertEqual(actual.shape, generating_matrices.shape)
          with self.subTest("DType"):
              self.assertEqual(actual.dtype, dtype)
  
file_path: tf-quant-finance/tf_quant_finance/math/qmc/digital_net_test.py
imports: import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 11 for calling the DigitalNetTest obj's underlying member method code with example usage: obj.test_scramble_generating_matrices_with_dtype() without return types