code: def resolve_model(model_config, dataset, tested_task):
      """Parses the model config and evaluates any expression that may contain constants"""
      # placeholders to subsitute
      constants = {
          "FEAT": max(dataset.feature_dimension, 0),
          "TASK": tested_task,
          "N_CLS": dataset.num_classes
          if hasattr(dataset, "num_classes")
          else None,
      }
  
      # user defined contants to subsitute
      if "define_constants" in model_config.keys():
          constants.update(dict(model_config.define_constants))
  
      resolve(model_config, constants)
  
imports: from omegaconf.dictconfig import DictConfig
  from omegaconf.listconfig import ListConfig
label_desc: Use image node_id 1 for calling a global function with example usage: resolve_model(model_config, dataset, tested_task) without return types