code: def get_single_text(field, text, **kwargs):
      """Returns the first token from an analyzer's output."""
  
      for t in field.process_text(text, mode="query", **kwargs):
          return t
  
imports: import sys
label_desc: Use image node_id 1 for calling a global function with example usage: get_single_text(field, text) and returns: t