code: def run_checks():
      cleanup()
  
      trainer = instantiate_multinode_ddp_if_possible()
      model = setup_model(trainer)
      check_model_ranks(model)
  
      print("DDP checks passed !")
  
      cleanup()
  
imports: import os
  import shutil
  import torch
  from omegaconf import OmegaConf
  from pytorch_lightning import Trainer
  from pytorch_lightning.utilities import rank_zero_only
  from nemo.core import ModelPT
  from nemo.utils import logging
  from nemo.utils.exp_manager import ExpManagerConfig, exp_manager
label_desc: Use image node_id 6 for calling a global function with example usage: run_checks() without return types