code: def _format_template_tags(raw_text: str) -> str:
      """Convert from Surge AI template tag format to Mechanical Turk template tag format.
  
      {{field}} -> ${field}"""
      return re.sub(r"{{([^{}]+)}}", "${\\1}", raw_text)
  
imports: import csv
  from datetime import datetime
  import os
  from threading import Lock
  from typing import Dict, List, Sequence
  import textwrap
  import re
  from helm.common.critique_request import CritiqueQuestionTemplate, CritiqueRequest, CritiqueTaskTemplate, QuestionType
  from helm.common.general import ensure_directory_exists
  from helm.common.hierarchical_logger import hlog
label_desc: Use image node_id 2 for calling a global function with example usage: _format_template_tags(raw_text) and returns: re