code: def is_ddp_ignored(p):
      return getattr(p, "_ddp_to_ignore", False)
  
file_path: colossalai/colossalai/utils/common.py
imports: import functools
  import os
  import random
  from contextlib import contextmanager
  from pathlib import Path
  from typing import Callable
  import numpy
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: is_ddp_ignored(p) and returns: getattr