code: def _req(key, return_metadata):
      """Return whether metadata key is requested, boolean."""
      if isinstance(return_metadata, bool):
          return return_metadata
      elif isinstance(return_metadata, str) and not isinstance(
          key, list
      ):
          return return_metadata == key
      elif isinstance(return_metadata, str) and isinstance(key, list):
          return return_metadata in key
      elif isinstance(return_metadata, list) and not isinstance(
          key, list
      ):
          return key in return_metadata
      elif isinstance(return_metadata, list) and isinstance(key, list):
          return len(set(key).intersection(return_metadata)) > 0
      else:
          return False
  
label_desc: Use image node_id 3 for calling a global function with example usage: _req(key, return_metadata) and returns: return_metadata, unknown, unknown, unknown, unknown, False