code: def _check_scheme(scheme: str, types: Dict):
      if scheme == "":
          scheme = None
      if scheme not in types:  # pragma: no cover
          raise ValueError(
              f"address illegal, address scheme "
              f"should be one of "
              f'{", ".join(types)}, '
              f"got {scheme}"
          )
      return scheme
  
file_path: mars/mars/oscar/backends/communication/core.py
imports: from typing import Dict, Type
  from urllib.parse import urlparse
  from .base import Client, Server
label_desc: Use image node_id 3 for calling a global function with example usage: _check_scheme(scheme, types) and returns: scheme