code: def _indent_to_level(text: str, level: int) -> str:
      """Helper for indenting XML to the same level as the external template."""
      return textwrap.indent(text, " " * 4 * level).lstrip()
  
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 1 for calling a global function with example usage: _indent_to_level(text, level) and returns: textwrap