code: def MakeTallFunc(relative, wildcard):
      def func(image):
          if relative:
              return np.array([-1 if wildcard else 2, 0.5, 1]).astype(
                  np.float32
              )
          else:
              h, w, c = image.shape
              return np.array(
                  [-1 if wildcard else 2 * h, w / 2, c]
              ).astype(np.int32)
  
      return func
  
imports: from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import pipeline_def
  import nvidia.dali.fn
  import nvidia.dali.ops
  import nvidia.dali.types
  import numpy
  from numpy.testing import assert_array_equal
  import os
  from nose_utils import assert_raises
  from nose2.tools import params
label_desc: Use image node_id 3 for calling a global function with example usage: MakeTallFunc(relative, wildcard) and returns: func, np, np