code: def copypaste_collate_fn(batch):
      copypaste = SimpleCopyPaste(
          blending=True, resize_interpolation=InterpolationMode.BILINEAR
      )
      return copypaste(*utils.collate_fn(batch))
  
file_path: vision/references/detection/train.py
imports: import datetime
  import os
  import time
  import presets
  import torch
  import torch.utils.data
  import torchvision
  import torchvision.models.detection
  import torchvision.models.detection.mask_rcnn
  import utils
  from coco_utils import get_coco
  from engine import evaluate, train_one_epoch
  from group_by_aspect_ratio import create_aspect_ratio_groups, GroupedBatchSampler
  from torchvision.transforms import InterpolationMode
  from transforms import SimpleCopyPaste
label_desc: Use image node_id 1 for calling a global function with example usage: copypaste_collate_fn(batch) and returns: copypaste