code: def test_generate_self_verf_data(var_names, dims):
      variables = OrderedDict()
      k = 0
      y = np.zeros([DATA_NUM, len(var_names)]).astype(np.uint32)
      for n in var_names:
          shape = list(np.random.randint(4, 28, size=(dims,)))
          variables[n] = np.random.randint(
              127, 255, size=[DATA_NUM] + shape
          ).astype(np.uint32)
          for i in range(variables[n].shape[0]):
              idx = tuple([i] + [0] * dims)
              variables[n][idx] = i
              y[i, k] = zlib.crc32(variables[n][i, ...].tobytes("C"))
          k += 1
          variables["y"] = y
      save_variable_to_cache_file(variables)
  
file_path: nnabla/src/nbla_utils/test/test_npy_files.py
imports: import pytest
  import numpy
  import zlib
  import csv
  import os
  from collections import OrderedDict
label_desc: Use image node_id 5 for calling a global function with example usage: test_generate_self_verf_data(var_names, dims) without return types