code: def _py_interpreter_range(py_version):
      # type: (PythonVersion) -> Iterator[str]
      """
      Yields Python versions in descending order.
  
      After the latest version, the major-only version will be yielded, and then
      all previous versions of that major version.
      """
      if len(py_version) > 1:
          yield "py{version}".format(
              version=_version_nodot(py_version[:2])
          )
      yield "py{major}".format(major=py_version[0])
      if len(py_version) > 1:
          for minor in range(py_version[1] - 1, -1, -1):
              yield "py{version}".format(
                  version=_version_nodot((py_version[0], minor))
              )
  
imports: from __future__ import absolute_import
  import distutils.util
  import collections
  import logging
  import os
  import platform
  import re
  import struct
  import sys
  import sysconfig
  import warnings
  from ._typing import TYPE_CHECKING, cast
label_desc: Use image node_id 10 for calling a global function with example usage: _py_interpreter_range(py_version) without return types