code: def squeeze_pipe(shapes, axes=None, axis_names=None, layout=None):
      data = fn.external_source(
          lambda: get_data(shapes),
          layout=layout,
          batch=True,
          device="cpu",
      )
      return fn.squeeze(data, axes=axes, axis_names=axis_names)
  
file_path: DALI/dali/test/python/operator_2/test_squeeze.py
imports: import numpy
  import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  from nose_utils import raises
label_desc: Use image node_id 2 for calling a global function with example usage: squeeze_pipe(shapes, axes, axis_names, layout) and returns: fn