code: def _wr(d, key, val, return_metadata):
      """Metadata write switch for checker functions."""
      if _req(key, return_metadata):
          d[key] = val
  
      return d
  
label_desc: Use image node_id 4 for calling a global function with example usage: _wr(d, key, val, return_metadata) and returns: d