docstr: Set the global config.
docstr_tok: ["Set","the","global","config","."]
code: def set_global(
      self, global_config: _Optional[ModuleOptimizationConfig]
  ) -> "OptimizationConfig":
      """
      Set the global config.
      """
      self.global_config = global_config
      return self
  
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 OptimizationConfig obj's underlying member method code with example usage: obj.set_global(global_config) and returns: self