code: def use_cupy():
      global cp
      global datapy
      global make_array
      global _to_numpy
      global random_seed
      global random_array
      global random_int
      import cupy as cp
  
      datapy = cp
      make_array = cp.array
      _to_numpy = cp.asnumpy
      random_seed = datapy.random.seed
      random_array = datapy.random.ranf
      random_int = datapy.random.randint
      global cpu_input
      cpu_input = False
  
imports: import functools
  import numpy
  import nvidia.dali.fn
  import nvidia.dali.ops
  from nvidia.dali import Pipeline
  from nose_utils import assert_raises
  from test_utils import check_output
label_desc: Use image node_id 4 for calling a global function with example usage: use_cupy() without return types