code: def _handle_default(k, v=None):
      """Avoid dicts as default keyword arguments.
  
      Use this function instead to resolve default dict values. Example usage::
  
          scalings = _handle_default('scalings', scalings)
  
      """
      this_mapping = deepcopy(DEFAULTS[k])
      if v is not None:
          if isinstance(v, dict):
              this_mapping.update(v)
          else:
              for key in this_mapping:
                  this_mapping[key] = v
      return this_mapping
  
label_desc: Use image node_id 1 for calling a global function with example usage: _handle_default(k, v) and returns: this_mapping