code: def source_full_array(shape, dtype):
      def source(sample_info):
          return np.full(shape, sample_info.idx_in_epoch, dtype=dtype)
  
      return source
  
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 4 for calling a global function with example usage: source_full_array(shape, dtype) and returns: source, np