code: def _resolve_custom_scheme(path: str) -> str:
      """Returns the resolved path if the given path follows a Ray-specific custom
      scheme. Othewise, returns the path unchanged.
  
      The supported custom schemes are: "local", "example".
      """
      parsed_uri = urllib.parse.urlparse(path)
      if parsed_uri.scheme == _LOCAL_SCHEME:
          path = parsed_uri.netloc + parsed_uri.path
      elif parsed_uri.scheme == _EXAMPLE_SCHEME:
          example_data_path = (
              pathlib.Path(__file__).parent.parent / "examples" / "data"
          )
          path = example_data_path / (
              parsed_uri.netloc + parsed_uri.path
          )
          path = str(path.resolve())
      return path
  
imports: import importlib
  import logging
  import os
  import pathlib
  import random
  import sys
  import threading
  import time
  import urllib.parse
  from collections import deque
  from types import ModuleType
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, Iterator, List, Optional, Tuple, TypeVar, Union
  import numpy
  import ray
  from ray._private.utils import _get_pyarrow_version
  from ray.data._internal.arrow_ops.transform_pyarrow import unify_schemas
  from ray.data.context import WARN_PREFIX, DataContext
label_desc: Use image node_id 9 for calling a global function with example usage: _resolve_custom_scheme(path) and returns: path