code: def broadcast_seeds(seed, device):
      if torch.distributed.is_initialized():
          seeds_tensor = torch.LongTensor([seed]).to(device)
          torch.distributed.broadcast(seeds_tensor, 0)
          seed = seeds_tensor.item()
      return seed
  
file_path: DALI/docs/examples/use_cases/pytorch/single_stage_detector/src/data.py
imports: import os
  import numpy
  import torch
  from torch.utils.data import DataLoader
  from src.utils import dboxes300_coco, COCODetection, SSDTransformer
  from src.coco import COCO
  from src.coco_pipeline import create_coco_pipeline
  from nvidia.dali.plugin.pytorch import DALIGenericIterator, LastBatchPolicy
label_desc: Use image node_id 2 for calling a global function with example usage: broadcast_seeds(seed, device) and returns: seed