code: def test_pad_last_batch_epoch_size():
      pipe = COCOReaderPipeline(
          batch_size=10,
          num_threads=4,
          shard_id=0,
          num_gpus=1,
          data_paths=datasets[0],
          random_shuffle=True,
          stick_to_shard=False,
          shuffle_after_epoch=False,
          pad_last_batch=True,
      )
      pipe.build()
      reference_size = pipe.epoch_size("Reader")
  
      for num_gpus in range(1, 10):
          pipe = COCOReaderPipeline(
              batch_size=10,
              num_threads=4,
              shard_id=0,
              num_gpus=num_gpus,
              data_paths=datasets[0],
              random_shuffle=True,
              stick_to_shard=False,
              shuffle_after_epoch=False,
              pad_last_batch=True,
          )
          pipe.build()
          size = pipe.epoch_size("Reader")
          print(reference_size, size, num_gpus)
          assert (
              size
              == int(math.ceil(reference_size * 1.0 / num_gpus))
              * num_gpus
          )
  
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 9 for calling a global function with example usage: test_pad_last_batch_epoch_size() without return types