code: def _get_next_leaf_if_indentation(leaf):
      while leaf and _is_indentation_error_leaf(leaf):
          leaf = leaf.get_next_leaf()
      return leaf
  
imports: import re
  import difflib
  from collections import namedtuple
  import logging
  from parso.utils import split_lines
  from parso.python.parser import Parser
  from parso.python.tree import EndMarker
  from parso.python.tokenize import PythonToken, BOM_UTF8_STRING
  from parso.python.token import PythonTokenTypes
label_desc: Use image node_id 3 for calling a global function with example usage: _get_next_leaf_if_indentation(leaf) and returns: leaf