code: def cast_ref_data(from_dtype, to_dtype):
      shape = (5, 4)
      input_range = (-100, 100)
  
      if from_dtype == "bool":
          a_np = np.random.choice([True, False], size=shape)
      else:
          a_np = np.random.uniform(*input_range, size=shape).astype(
              from_dtype
          )
  
      if to_dtype == "bool":
          a_np = a_np - a_np[2, 3]
      b_np = a_np.astype(to_dtype)
  
      return a_np, b_np
  
file_path: tvm/tests/python/topi/test_topi_math.py
imports: import sys
  import numpy
  import pytest
  import scipy
  from scipy import special
  import tvm
  import tvm.testing
  import tvm.topi.testing
  from tvm import te, topi
  from tvm.topi import utils
label_desc: Use image node_id 4 for calling a global function with example usage: cast_ref_data(from_dtype, to_dtype) and returns: a_np,  b_np