code: def get_tag(tokens, tag):
      """
      Extracts the value inside the given tag.
      """
      start = tokens.index("<" + tag + ">") + 1
      stop = tokens.index("</" + tag + ">")
      return tokens[start:stop]
  
file_path: ParlAI/parlai/tasks/onecommon/agents.py
imports: from parlai.core.teachers import FixedDialogTeacher
  from parlai.utils.io import PathManager
  from .build import build
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: get_tag(tokens, tag) and returns: tokens