code: def parse_config(params, exclude=None, include=None):
      if exclude and include:
          raise UsageError(
              "Expected at most only one of exclude or include"
          )
      if isinstance(params, str):
          params = config_util.dict_from_config_file(
              params, must_exist=True
          )
      params = _to_dict(params)
      if include:
          params = {
              key: value
              for key, value in params.items()
              if key in include
          }
      if exclude:
          params = {
              key: value
              for key, value in params.items()
              if key not in exclude
          }
      return params
  
imports: import inspect
  import types
  from wandb.errors import UsageError
  from .lib import config_util
label_desc: Use image node_id 1 for calling a global function with example usage: parse_config(params, exclude, include) and returns: params