docstr: A replacement for ``collections.OrderedDict`` to detect external ZeRO params.
  
  Args:
      parent_module (``collections.OrderedDict``): the collection to replace
docstr_tok: ["A","replacement","for","``","collections.OrderedDict","``","to","detect","external","ZeRO","params",".","Args",":","parent_module","(","``","collections.OrderedDict","``",")",":","the","collection","to","replace"]
code: def __init__(self, parent_module, *args, **kwargs):
      """A replacement for ``collections.OrderedDict`` to detect external ZeRO params.
  
      Args:
          parent_module (``collections.OrderedDict``): the collection to replace
      """
  
      super().__init__(*args, **kwargs)
      self._parent_module = parent_module
      self._in_forward = False
  
imports: import sys
  import torch
  from collections import OrderedDict
  from deepspeed.runtime.utils import see_memory_usage
  from deepspeed.runtime.zero.offload_config import OffloadDeviceEnum
  from deepspeed.runtime.zero.partition_parameters import _init_external_params
  from deepspeed.runtime.zero.partition_parameters import *
  from deepspeed.runtime.zero.partitioned_param_coordinator import PartitionedParameterCoordinator, InflightParamRegistry, iter_params
  from deepspeed import comm
  from deepspeed.accelerator import get_accelerator
label_desc: Use image node_id 1 to create a new ZeROOrderedDict object from inherited base classes: OrderedDict with example: obj = ZeROOrderedDict(parent_module)