code: def from_config(cls, config):
      return cls(
          base_optimizer=build_optimizer(config["base_optimizer"])
      )
  
file_path: ClassyVision/classy_vision/optim/zero.py
imports: import logging
  from typing import Any
  import torch.distributed
  from classy_vision.generic.distributed_util import get_primary_rank
  from classy_vision.optim import build_optimizer, ClassyOptimizer, register_optimizer
label_desc: Use image node_id 3 for calling the ZeRO obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls