code: def manual_sync_params(model: DistributedDataParallel) -> None:
      """
      Manually sync params and buffers for DDP.
      """
      _orig = model.require_forward_param_sync
      model.require_forward_param_sync = True
      model._sync_params()
      model.require_forward_param_sync = _orig
  
file_path: vissl/vissl/utils/activation_checkpointing.py
imports: from typing import Dict, List
  import torch.distributed
  from torch import nn
  from torch.nn import Module
  from torch.nn.parallel import DistributedDataParallel
label_desc: Use image node_id 2 for calling a global function with example usage: manual_sync_params(model) without return types