code: def _replace_indentation_for_tabs(lines):
      indentation_type = ""
      for i in range(len(lines)):
          lines[i] = lines[i].rstrip()
          match = re.search(r"(^\s+)(.*)", lines[i])
  
          if match:
              if not indentation_type:
                  indentation_type = match.group(1)
              else:
                  _validate_indendation(
                      indentation_type, match.group(1)
                  )
  
              expr = match.group(2)
          else:
              expr = lines[i]
  
          beginning_spaces = len(lines[i]) - len(expr)
          if beginning_spaces > 0:
              lines[i] = (
                  "\t" * (beginning_spaces // len(indentation_type))
              ) + expr
  
      return lines
  
file_path: blazingsql/pyblazing/pyblazing/apiv2/algebra/json_plan.py
imports: import collections
  import json
  import re
label_desc: Use image node_id 7 for calling a global function with example usage: _replace_indentation_for_tabs(lines) and returns: lines