docs: def replace_tab_indent(s, replace="    "):
      """
      :param str s: string with tabs
      :param str replace: e.g. 4 spaces
      :rtype: str
      """
      prefix = get_indent_prefix(s)
      return prefix.replace("\t", replace) + s[len(prefix):]