code: def configs(*args):
      r"""
      Calculate configurations
  
      This has multiple overloads
  
      .. function:: configs(conf_dict: Dict[str, any])
          :noindex:
  
      .. function:: configs(conf_dict: Dict[str, any], conf_override: Dict[str, any])
          :noindex:
  
      .. function:: configs(conf: BaseConfigs)
          :noindex:
  
      .. function:: configs(conf: BaseConfigs, run_order: List[Union[List[str], str]])
          :noindex:
  
      .. function:: configs(conf: BaseConfigs, *run_order: str)
          :noindex:
  
      .. function:: configs(conf: BaseConfigs, conf_override: Dict[str, any])
          :noindex:
  
      .. function:: configs(conf: BaseConfigs, conf_override: Dict[str, any], run_order: List[Union[List[str], str]])
          :noindex:
  
      .. function:: configs(conf: BaseConfigs, conf_override: Dict[str, any], *run_order: str)
          :noindex:
  
      Arguments:
          conf (BaseConfigs, optional): configurations object
          conf_dict (Dict[str, any], optional): a dictionary of configs
          conf_override (Dict[str, any], optional): a dictionary of
              configs to be overridden
      """
      conf_override: Optional[Dict[str, any]] = None
      conf = args[0]
      idx = 1
  
      if idx < len(args) and isinstance(args[idx], dict):
          conf_override = args[idx]
          idx += 1
  
      if len(args) != idx:
          raise RuntimeError("Invalid call to calculate configs")
  
      if isinstance(conf, BaseConfigs):
          _experiment_singleton().calc_configs(conf, conf_override)
      elif isinstance(conf, dict):
          _experiment_singleton().calc_configs(conf, conf_override)
      else:
          raise RuntimeError("Invalid call to calculate configs")
  
imports: from pathlib import Path
  from typing import Optional, Set, Dict, overload
  import numpy
  from labml.configs import BaseConfigs
  from labml.internal.experiment import create_experiment, experiment_singleton, has_experiment
  from labml.internal.experiment.experiment_run import get_configs
  from labml.internal.monitor import monitor_singleton
label_desc: Use image node_id 10 for calling a global function with example usage: configs() without return types