code: def gray_scale_call(input):
      height = input.shape[0]
      width = input.shape[1]
      output = cupy.ndarray((height, width), dtype=cupy.float32)
      gray_scale_kernel(
          grid=((height + 31) // 32, (width + 31) // 32),
          block=(32, 32),
          stream=cupy.cuda.get_current_stream(),
          args=(output, input, height, width),
      )
      return output
  
imports: import numpy
  import nvidia.dali.ops
  import nvidia.dali.types
  import os
  import random
  from functools import partial
  from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import fn, pipeline_def
  from nvidia.dali.python_function_plugin import current_dali_stream
label_desc: Use image node_id 27 for calling a global function with example usage: gray_scale_call(input) and returns: output