code: def _check_is_uri(s: str) -> bool:
      try:
          protocol, path = parse_uri(s)
      except ValueError:
          protocol, path = None, None
  
      if (
          protocol in Protocol.remote_protocols()
          and not path.endswith(".zip")
          and not path.endswith(".whl")
      ):
          raise ValueError(
              "Only .zip or .whl files supported for remote URIs."
          )
  
      return protocol is not None
  
file_path: ray/python/ray/_private/runtime_env/py_modules.py
imports: import logging
  import os
  from pathlib import Path
  from types import ModuleType
  from typing import Any, Dict, List, Optional
  from ray._private.runtime_env.context import RuntimeEnvContext
  from ray._private.runtime_env.packaging import Protocol, delete_package, download_and_unpack_package, get_local_dir_from_uri, get_uri_for_directory, get_uri_for_package, install_wheel_package, is_whl_uri, package_exists, parse_uri, upload_package_if_needed, upload_package_to_gcs
  from ray._private.runtime_env.plugin import RuntimeEnvPlugin
  from ray._private.runtime_env.working_dir import set_pythonpath_in_context
  from ray._private.utils import get_directory_size_bytes, try_to_create_directory
  from ray.exceptions import RuntimeEnvSetupError
label_desc: Use image node_id 1 for calling a global function with example usage: _check_is_uri(s) and returns: unknown