code: def generate_workloads():
      array_pool = {}
      shapes = []
      for ndim in range(4):
          shapes.extend(list(itertools.product(range(4), repeat=ndim)))
      for shape in shapes:
          name = "x".join(str(i) for i in shape)
          if name in array_pool:
              raise ValueError(f"duplicate array {name}")
          array_pool[name] = dnp.ones(shape)
      return array_pool
  
file_path: mxnet/benchmark/python/ffi/benchmark_ffi.py
imports: import timeit
  import itertools
  import argparse
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: generate_workloads() and returns: array_pool