code: def CollapseChannelsWildcard(image):
      new_shape = np.array([image.shape[0], -1]).astype(np.int32)
      return new_shape
  
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 2 for calling a global function with example usage: CollapseChannelsWildcard(image) and returns: new_shape