code: def _reindent_code(codestr):
      """Given code string, reindent it in the same way that the Github dataset was indented"""
      codestr = io.StringIO(codestr)
      ret = io.StringIO()
      run_reindent(
          codestr,
          ret,
          config={
              "dry-run": False,
              "help": False,
              "to": 4,
              "from": -1,
              "tabs": True,
              "encoding": "utf-8",
              "is-tabs": False,
              "tabsize": 4,
              "all-tabs": False,
          },
      )
      return ret.getvalue()
  
imports: import io
  import json
  import os
  from typing import List, Dict, Iterable, Optional, cast
  from helm.common.general import ensure_file_downloaded
  from helm.common.hierarchical_logger import hlog
  from .code_scenario_helper import run
  from .code_scenario_apps_pinned_file_order import apps_listdir_with_pinned_order
  from .scenario import Scenario, Instance, Reference, TRAIN_SPLIT, VALID_SPLIT, TEST_SPLIT, CORRECT_TAG, Input, Output
label_desc: Use image node_id 5 for calling a global function with example usage: _reindent_code(codestr) and returns: ret