code: def parents(node: EnhancedAST) -> Iterator[EnhancedAST]:
      while True:
          if hasattr(node, "parent"):
              node = node.parent
              yield node
          else:
              break
  
imports: import ast
  import sys
  import dis
  from types import CodeType, FrameType
  from typing import Any, Callable, Iterator, Optional, Sequence, Set, Tuple, Type, Union, cast
  from .executing import EnhancedAST, NotOneValueFound, Source, only, function_node_types, assert_
  from ._exceptions import KnownIssue, VerifierFailure
  from functools import lru_cache
label_desc: Use image node_id 1 for calling a global function with example usage: parents(node) without return types