code: def install_matching_ray_locally(ray_wheels: Optional[str]):
      if not ray_wheels:
          logger.warning(
              "No Ray wheels found - can't install matching Ray wheels locally!"
          )
          return
      assert "manylinux2014_x86_64" in ray_wheels, ray_wheels
      if sys.platform == "darwin":
          platform = "macosx_10_15_intel"
      elif sys.platform == "win32":
          platform = "win_amd64"
      else:
          platform = "manylinux2014_x86_64"
      ray_wheels = ray_wheels.replace("manylinux2014_x86_64", platform)
      logger.info(
          f"Installing matching Ray wheels locally: {ray_wheels}"
      )
      subprocess.check_output(
          "pip uninstall -y ray", shell=True, env=os.environ, text=True
      )
      subprocess.check_output(
          f"pip install -U {shlex.quote(ray_wheels)}",
          shell=True,
          env=os.environ,
          text=True,
      )
      for module_name in RELOAD_MODULES:
          if module_name in sys.modules:
              importlib.reload(sys.modules[module_name])
  
imports: import importlib
  import os
  import re
  import shlex
  import subprocess
  import sys
  from datetime import datetime
  import tempfile
  import time
  import urllib.request
  from typing import Optional, List, Tuple
  from ray_release.config import parse_python_version
  from ray_release.test import DEFAULT_PYTHON_VERSION
  from ray_release.template import set_test_env_var
  from ray_release.exception import RayWheelsUnspecifiedError, RayWheelsNotFoundError, RayWheelsTimeoutError, ReleaseTestSetupError
  from ray_release.logger import logger
  from ray_release.util import url_exists, python_version_str, resolve_url
  from ray_release.aws import upload_to_s3
label_desc: Use image node_id 13 for calling a global function with example usage: install_matching_ray_locally(ray_wheels) without return types