code: def test_global_shuffle_random_shuffle_2():
      num_gpus = 1
      batch_size = 1
      pipes = [
          COCOReaderPipeline(
              batch_size=batch_size,
              num_threads=4,
              shard_id=gpu,
              num_gpus=2,
              data_paths=datasets[0],
              random_shuffle=False,
              stick_to_shard=False,
              shuffle_after_epoch=True,
              pad_last_batch=False,
              initial_fill=1,
          )
          for gpu in range(num_gpus)
      ]
  
      for pipe in pipes:
          pipe.build()
  
      img_ids_list, img_ids_list_set, _ = gather_ids(
          pipes, num_gpus_arg=2, gpus_arg=[0]
      )
      assert len(img_ids_list) == len(img_ids_list_set)
  
      img_ids_list_new, img_ids_list_new_set, _ = gather_ids(
          pipes, num_gpus_arg=2, gpus_arg=[0]
      )
  
      assert len(img_ids_list_new) == len(img_ids_list_new_set)
      assert (
          len(img_ids_list_set.intersection(img_ids_list_new_set)) != 0
      )
  
imports: import nose_utils
  import math
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import numpy
  import os
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 5 for calling a global function with example usage: test_global_shuffle_random_shuffle_2() without return types