code: def __init__(self, dist_optim):
      assert isinstance(dist_optim, paddle.distributed.fleet.Fleet)
      self._optim = dist_optim
  
file_path: PaddleSeg/contrib/PanopticSeg/paddlepanseg/core/train.py
imports: import os
  import time
  import shutil
  from collections import deque
  import paddle
  from paddleseg.utils import TimeAverager, calculate_eta, resume, logger, worker_init_fn, train_profiler, op_flops_funs
  from paddlepanseg.core.val import evaluate
  from paddlepanseg.core.runner import PanSegRunner
  from paddlepanseg.core.launcher import AMPLauncher
label_desc: Use image node_id 1 to create a new _DistOptimizerWrapper object from inherited base classes: object with example: obj = _DistOptimizerWrapper(dist_optim)