class_docstr: Deprecated optimizer hook for distributed training.
code: def __init__(self, *args, **kwargs):
      warnings.warn(
          '"DistOptimizerHook" is deprecated, please switch to'
          '"mmcv.runner.OptimizerHook".'
      )
      super().__init__(*args, **kwargs)
  
file_path: insightface/detection/scrfd/mmdet/core/utils/dist_utils.py
imports: import warnings
  from collections import OrderedDict
  import torch.distributed
  from mmcv.runner import OptimizerHook
  from torch._utils import _flatten_dense_tensors, _take_tensors, _unflatten_dense_tensors
label_desc: Use image node_id 1 to create a new DistOptimizerHook object from inherited base classes: OptimizerHook with example: obj = DistOptimizerHook()