class_docstr: Adds the same image multiple times to the batch K times so that the batch.
  Size is now N*K. Use the simclr_collator to convert into batches.
  
  This transform is useful when generating multiple copies of the same image,
  for example, when training contrastive methods.
docstr: Args:
      num_times (int): how many times should the image be replicated.
code: def __init__(self, num_times: int = 2):
      """
      Args:
          num_times (int): how many times should the image be replicated.
      """
      assert isinstance(
          num_times, int
      ), f"num_times must be an integer. Found {type(num_times)}"
      assert (
          num_times > 0
      ), f"num_times {num_times} must be greater than zero."
      self.num_times = num_times
  
file_path: vissl/vissl/data/ssl_transforms/img_replicate_pil.py
imports: import logging
  from typing import Any, Dict
  from classy_vision.dataset.transforms import register_transform
  from classy_vision.dataset.transforms.classy_transform import ClassyTransform
label_desc: Use image node_id 1 to create a new ImgReplicatePil object from inherited base classes: ClassyTransform with example: obj = ImgReplicatePil(num_times)