code: def _changed_params(params, init_params):
      """Return dict (param_name: value) of parameters that were given to
      the step with non-default values."""
      filtered_params = {}
      for k, v in params.items():
          if repr(v) != repr(init_params[k]) and not (
              is_scalar_nan(init_params[k]) and is_scalar_nan(v)
          ):
              filtered_params[k] = v
      return filtered_params
  
imports: from inspect import signature
  import numbers
  import pprint
  import re
  from collections import OrderedDict
  import numpy
  from baikal import Step, get_config
label_desc: Use image node_id 3 for calling a global function with example usage: _changed_params(params, init_params) and returns: filtered_params