code: def random_shape(max_shape, diff=100):
      # Produces a random shape close to the max shape
      for s in max_shape:
          assert s > diff
      return np.array(
          [np.random.randint(s - diff, s) for s in max_shape],
          dtype=np.int32,
      )
  
imports: import numpy
  import nvidia.dali
  from nvidia.dali.backend_impl import TensorListGPU
  from nvidia.dali.pipeline import Pipeline
label_desc: Use image node_id 1 for calling a global function with example usage: random_shape(max_shape, diff) and returns: np