code: def test_rewrite_wheels_url(remove_buildkite_env):
      # Do not rewrite if versions match
      assert (
          maybe_rewrite_wheels_url(
              f"http://some/location/{get_wheels_filename('3.0.0dev0', (3, 7))}",
              (3, 7),
          )
          == f"http://some/location/{get_wheels_filename('3.0.0dev0', (3, 7))}"
      )
  
      # Do not rewrite if version can't be parsed
      assert (
          maybe_rewrite_wheels_url(
              "http://some/location/unknown.whl", (3, 7)
          )
          == "http://some/location/unknown.whl"
      )
  
      # Rewrite when version can be parsed
      assert (
          maybe_rewrite_wheels_url(
              f"http://some/location/{get_wheels_filename('3.0.0dev0', (3, 8))}",
              (3, 7),
          )
          == f"http://some/location/{get_wheels_filename('3.0.0dev0', (3, 7))}"
      )
  
imports: import os
  import sys
  import time
  import pytest
  from unittest.mock import patch
  from freezegun import freeze_time
  from ray_release.bazel import bazel_runfile
  from ray_release.exception import RayWheelsNotFoundError, RayWheelsTimeoutError
  from ray_release.util import url_exists
  from ray_release.wheels import get_ray_version, DEFAULT_REPO, get_ray_wheels_url, find_ray_wheels_url, find_and_wait_for_ray_wheels_url, is_wheels_url_matching_ray_verison, get_wheels_filename, maybe_rewrite_wheels_url, parse_commit_from_wheel_url
label_desc: Use image node_id 12 for calling a global function with example usage: test_rewrite_wheels_url(remove_buildkite_env) without return types