code: def _test_shape_pipeline(shape, dtype):
      @pipeline_def
      def pipeline():
          bayer_imgs = fn.external_source(
              source_full_array(shape, dtype), batch=False
          )
          return fn.experimental.debayer(
              bayer_imgs.gpu(), blue_position=[0, 0]
          )
  
      pipe = pipeline(batch_size=8, num_threads=4, device_id=0)
      pipe.build()
      pipe.run()
  
imports: import itertools
  import os
  import unittest
  import numpy
  from nvidia.dali import pipeline_def, fn, types
  from test_utils import get_dali_extra_path
  from nose_utils import assert_raises
  from nose2.tools import params
  from debayer_test_utils import bayer_patterns, blue_position, blue_position2pattern, rgb2bayer, rgb2bayer_seq, debayer_bilinear_npp_pattern, debayer_bilinear_npp_pattern_seq
label_desc: Use image node_id 5 for calling a global function with example usage: _test_shape_pipeline(shape, dtype) and returns: fn