code: def force_print(*args, **kwargs):
      if cuda.CUDA_ENABLED and cuda.DISTRIBUTED_WORLD_SIZE > 1:
          try:
              device_info = f" [device:{torch.cuda.current_device()}]"
              print(*args, device_info, **kwargs, force=True)
          except TypeError:
              pass
      else:
          print(*args, **kwargs)
  
imports: from datetime import timedelta
  import pytext.utils.cuda
  import torch
  import torch.distributed
label_desc: Use image node_id 3 for calling a global function with example usage: force_print() without return types