code: def check_for_bool_in_generic(content: str) -> tuple[bool, str]:
      tree = ast.parse(content)
      to_replace = visit(tree)
  
      if not to_replace:
          mutated = False
          return mutated, content
  
      mutated = True
      return mutated, replace_bool_with_bool_t(to_replace, content)
  
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 3 for calling a global function with example usage: check_for_bool_in_generic(content) and returns: mutated,  replace_bool_with_bool_t, mutated,  content