code: def from_args(cls, args: Namespace) -> "ModelArchiverConfig":
      params = {
          field.name: getattr(args, field.name) for field in fields(cls)
      }
      config = cls(**params)
      return config
  
imports: import os
  from argparse import Namespace
  from dataclasses import dataclass, fields
  from typing import Literal, Optional
  from model_archiver.manifest_components.manifest import RuntimeType
label_desc: Use image node_id 1 for calling the ModelArchiverConfig obj's underlying member method code with example usage: obj.from_args(cls, args) and returns: config