code: def RandMatrix(rows, cols, tr, round_bfloat=False):
      if tr:
          rows, cols = cols, rows
      rand_func = (
          np.random.randint if round_bfloat else np.random.uniform
      )
      return (
          (
              np.clip(
                  rand_func(low=-256.0, high=256.0, size=rows * cols),
                  -64,
                  64,
              )
              / 128.0
          )
          .reshape([rows, cols])
          .astype(np.float32)
      )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/sparse_ops/sparse_matmul_op_test.py
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: RandMatrix(rows, cols, tr, round_bfloat) and returns: unknown