code: def replace_bool_with_bool_t(to_replace, content: str) -> str:
      new_lines = []
  
      for n, line in enumerate(content.splitlines(), start=1):
          replaced_line = line
          if n in to_replace:
              for col_offset in reversed(to_replace[n]):
                  replaced_line = (
                      replaced_line[:col_offset]
                      + "bool_t"
                      + replaced_line[col_offset + 4 :]
                  )
          new_lines.append(replaced_line)
      return "\n".join(new_lines) + "\n"
  
file_path: pandas/scripts/no_bool_in_generic.py
imports: from __future__ import annotations
  import argparse
  import ast
  import collections
  from typing import TYPE_CHECKING
label_desc: Use image node_id 2 for calling a global function with example usage: replace_bool_with_bool_t(to_replace, content) and returns: unknown