code: def _py_interpreter_range(py_version):
      """
      Yield Python versions in descending order.
  
      After the latest version, the major-only version will be yielded, and then
      all following versions up to 'end'.
      """
      yield "py{major}{minor}".format(
          major=py_version[0], minor=py_version[1]
      )
      yield "py{major}".format(major=py_version[0])
      for minor in range(py_version[1] - 1, -1, -1):
          yield "py{major}{minor}".format(
              major=py_version[0], minor=minor
          )
  
imports: from __future__ import absolute_import
  import distutils.util
  import platform
  import re
  import sys
  import sysconfig
  import warnings
label_desc: Use image node_id 10 for calling a global function with example usage: _py_interpreter_range(py_version) without return types