code: def rand_array(*dims):
      # np.random.rand() returns float instead of 0-dim array, that's why need to
      # do some tricks
      return np.array(np.random.rand(*dims) - 0.5).astype(np.float32)
  
imports: import numpy
  from caffe2.python import core, workspace
  import os
  import pathlib
  import shutil
  import tempfile
  import unittest
  from typing import Any, Callable, Tuple, Type
  from types import TracebackType
label_desc: Use image node_id 1 for calling a global function with example usage: rand_array() and returns: np