code: def _GetBatchMatmulOpBroadcastingTest(
      dtype, adjoint_a, adjoint_b, use_static_shape
  ):
      @test_util.run_without_tensor_float_32("Tests batch matmul")
      def Test(self):
          np.random.seed(42)
          self._testBroadcasting(
              dtype, adjoint_a, adjoint_b, use_static_shape
          )
  
      return Test
  
imports: import numpy
  from tensorflow.python import tf2
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import benchmark
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling a global function with example usage: _GetBatchMatmulOpBroadcastingTest(dtype, adjoint_a, adjoint_b, use_static_shape) and returns: Test