code: def _pop_with_fallback(mapping, key, fallback_fun):
      """Pop from a dict and fallback to a function parameter's default value."""
      fallback = signature(fallback_fun).parameters[key].default
      return mapping.pop(key, fallback)
  
imports: from inspect import currentframe, getargvalues, signature
  from ..utils import warn
label_desc: Use image node_id 1 for calling a global function with example usage: _pop_with_fallback(mapping, key, fallback_fun) and returns: mapping