code: def _current_params(metric_obj, override_only):
      params_with_defaults = metric_obj.params_with_defaults()
      param_info = {}
      for param in sorted(metric_obj._params):
          value = getattr(metric_obj, param)  # current value
          if param == "hints" and value == "":
              # Skip unset hints.
              continue
          if override_only:
              # Skip reporting parameters which are set to their default values.
              default_value = params_with_defaults[param][
                  "default_value"
              ]
              if (default_value is None and value is None) or (
                  default_value is not None and default_value == value
              ):
                  continue
          param_info[param] = value
      return param_info
  
imports: from functools import partial
  import numpy
  from .None import _catboost
label_desc: Use image node_id 4 for calling a global function with example usage: _current_params(metric_obj, override_only) and returns: param_info