docstr: Create class from a dictionary of string keys and values.
  
  Args:
      config_dict (:obj:`dict` of :obj:`str` and values): A nested dictionary of strings
          and values.
docstr_tok: ["Create","class","from","a","dictionary","of","string","keys","and","values",".","Args",":","config_dict","(",":","obj",":","`","dict","`","of",":","obj",":","`","str","`","and","values",")",":","A","nested","dictionary","of","strings","and","values","."]
code: def from_dict(
      cls, config_dict: _Dict[str, _Any]
  ) -> "ModuleOptimizationConfig":
      """
      Create class from a dictionary of string keys and values.
  
      Args:
          config_dict (:obj:`dict` of :obj:`str` and values): A nested dictionary of strings
              and values.
      """
      # passing forbid_extra_keys=True doesn't prevent silent failure when keys are mis-spelled
      _validate_config_dict(cls, config_dict)
      converter = _cattrs.Converter(forbid_extra_keys=True)
      return converter.structure_attrs_fromdict(config_dict, cls)
  
imports: from collections import OrderedDict
  from typing import IO
  from typing import Any
  from typing import Callable
  from typing import Dict
  from typing import List
  from typing import Optional
  from typing import Type
  from typing import Union
  import cattrs
  import torch
  import yaml
  from attr import Factory
  from attr import asdict
  from attr import define
label_desc: Use image node_id 1 for calling the ModuleOptimizationConfig obj's underlying member method code with example usage: obj.from_dict(cls, config_dict) and returns: converter