code: def normalize_answer(s):
      """Lower text and remove punctuation, articles and extra whitespace."""
      import emoji
      import neologdn
  
      def white_space_fix(text):
          return " ".join(text.split())
  
      def remove_emoji(text):
          text = "".join(["" if emoji.is_emoji(c) else c for c in text])
          emoji_pattern = re.compile(
              "["
              "\U0001F600-\U0001F64F"  # emoticons
              "\U0001F300-\U0001F5FF"  # symbols & pictographs
              "\U0001F680-\U0001F6FF"  # transport & map symbols
              "\U0001F1E0-\U0001F1FF"  # flags (iOS)
              "\U00002702-\U000027B0"
              "]+",
              flags=re.UNICODE,
          )
          return emoji_pattern.sub(r"", text)
  
      return white_space_fix((neologdn.normalize(remove_emoji(s))))
  
file_path: lm-evaluation-harness/lm_eval/jasquad/evaluate.py
imports: import argparse
  import json
  import re
  import string
  import sys
  from collections import Counter
label_desc: Use image node_id 2 for calling a global function with example usage: normalize_answer(s) and returns: white_space_fix, str, emoji_pattern