code: def random_shape(min_sh, max_sh, ndim):
      return np.array(
          [np.random.randint(min_sh, max_sh) for s in range(ndim)],
          dtype=np.int32,
      )
  
file_path: DALI/dali/test/python/operator_2/test_roi_random_crop.py
imports: import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.types
  import random
  from nose_utils import assert_raises
label_desc: Use image node_id 1 for calling a global function with example usage: random_shape(min_sh, max_sh, ndim) and returns: np