code: def from_config(cls, config: Dict[str, Any]) -> "EfficientNet":
      config = copy.deepcopy(config)
      config.pop("name")
      if "heads" in config:
          config.pop("heads")
      return cls(**config)
  
imports: import copy
  import math
  from collections import OrderedDict
  from typing import Any, Dict, NamedTuple, Optional
  import torch
  import torch.nn
  from classy_vision.generic.util import get_torch_version
  from classy_vision.models import ClassyModel, register_model
label_desc: Use image node_id 2 for calling the _EfficientNet obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls