code: def presence(label):
      """Higher-order function to test presence of a given label"""
  
      return lambda x, y: 1.0 * ((label in x) == (label in y))
  
file_path: nltk/nltk/metrics/distance.py
imports: import operator
  import warnings
label_desc: Use image node_id 11 for calling a global function with example usage: presence(label) and returns: function