code: def select_relevant_params(config_dict, ConfigClass):
      return {
          field.name: config_dict[field.name]
          for field in dataclasses.fields(ConfigClass)
          if field.name in config_dict
      }
  
file_path: ReAgent/reagent/workflow/cli.py
imports: import dataclasses
  import importlib
  import json
  import logging
  import os
  import sys
  import click
  from ruamel.yaml import YAML
label_desc: Use image node_id 3 for calling a global function with example usage: select_relevant_params(config_dict, ConfigClass) and returns: unknown