code: def random_threshold(ndim):
      return fn.random.uniform(
          range=(1, 5), shape=[ndim], dtype=dali.types.INT32, seed=13231
      )
  
imports: from nose_utils import assert_raises
  import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.ops
  import numpy
  import scipy.ndimage
  import scipy.ndimage.measurements
  import random
  from test_utils import check_batch, np_type_to_dali
  from nose.tools import nottest
  from nose.plugins.attrib import attr
label_desc: Use image node_id 20 for calling a global function with example usage: random_threshold(ndim) and returns: fn