code: def _test_batch_info_flag_default(cb, batch_size):
      pipe = Pipeline(batch_size, 1, 0)
      with pipe:
          ext = fn.external_source(source=cb)
          pipe.set_outputs(ext)
      pipe.build()
      pipe.run()
  
imports: import random
  import nvidia.dali.fn
  import nvidia.dali.ops
  import nvidia.dali.types
  import numpy
  from nvidia.dali import Pipeline, pipeline_def
  from test_utils import check_batch
  from nose_utils import raises, assert_warns, assert_raises
  from nvidia.dali.types import DALIDataType
  from numpy.random import default_rng
label_desc: Use image node_id 8 for calling a global function with example usage: _test_batch_info_flag_default(cb, batch_size) without return types