code: def get_requires_python(
      package: str, version: str
  ) -> t.Optional[str]:
      if version == "dev" and package in _DEV_PACKAGES_PYTHON_VERSIONS:
          return _DEV_PACKAGES_PYTHON_VERSIONS[package]
  
      resp = requests.get(
          f"https://pypi.python.org/pypi/{package}/json"
      )
      resp.raise_for_status()
      return next(
          (
              distributions[0].get("requires_python")
              for ver, distributions in resp.json()["releases"].items()
              if ver == version and distributions
          ),
          None,
      )
  
imports: import argparse
  import typing
  import requests
  from packaging.specifiers import SpecifierSet
  from packaging.version import Version
label_desc: Use image node_id 1 for calling a global function with example usage: get_requires_python(package, version) and returns: next, _DEV_PACKAGES_PYTHON_VERSIONS