code: def test_cross_check():
      scenarios = [
          (
              dont_use_mmap,
              batch_size,
              num_shards,
              shard_id,
              skip_cached_images,
              pad_last_batch,
              stick_to_shard,
          )
          for dont_use_mmap in (False, True)
          for stick_to_shard in (False, True)
          for pad_last_batch in (False, True)
          for skip_cached_images in (False, True)
          for batch_size in (1, 8)
          if batch_size != 1 or not pad_last_batch
          for num_shards in (1, 80)
          for shard_id in {0, num_shards - 1}
      ]
  
      for args in scenarios:
          yield (cross_check,) + args
  
imports: import math
  import os
  from glob import glob
  import webdataset_base
  from test_utils import compare_pipelines, get_dali_extra_path
label_desc: Use image node_id 2 for calling a global function with example usage: test_cross_check() without return types