code: def _parameterize_config(
      config: Dict[str, Any],
      params: Dict[str, str],
  ) -> Dict[str, Any]:
      """Parameterize the given configuration.
  
      Parameters
      ----------
      config : Dict[str, Any]
          The given config dict.
      Params : Dict[str, str]
          The given parameters.
  
      Returns
      -------
      result : Dict[str, Any]
          The parameterized configuration.
      """
      result = {}
      for k, v in config.items():
          if isinstance(k, str):
              k = k.format(**params)
          if isinstance(v, str):
              v = v.format(**params)
          elif isinstance(v, dict):
              v = _parameterize_config(v, params)
          elif isinstance(v, list):
              v = [t.format(**params) for t in v]
          result[k] = v
      return result
  
file_path: tvm/python/tvm/meta_schedule/logging.py
imports: import logging
  import logging.config
  import os
  import os.path
  from logging import Logger
  from typing import Any, Callable, Dict, List, Optional
label_desc: Use image node_id 5 for calling a global function with example usage: _parameterize_config(config, params) and returns: result