code: def random_shape(max_shape):
      return np.array(
          [1 if s == 1 else np.random.randint(1, s) for s in max_shape],
          dtype=np.int32,
      )
  
file_path: DALI/dali/test/python/operator_1/test_normal_distribution.py
imports: from nvidia.dali.pipeline import Pipeline
  from nvidia.dali.backend_impl import TensorListGPU
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import scipy.stats
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: random_shape(max_shape) and returns: np