code: def _is_valid_uri(uri: str):
      """
      Evaluates the basic structure of a provided gateway uri to determine if the scheme and
      netloc are provided
      """
      if uri == "databricks":
          return True
      try:
          parsed = urlparse(uri)
          return parsed.scheme == "databricks" or all(
              [parsed.scheme, parsed.netloc]
          )
      except ValueError:
          return False
  
imports: import base64
  import functools
  import inspect
  import json
  import logging
  import posixpath
  import re
  import textwrap
  import warnings
  from typing import List, Optional
  from urllib.parse import urlparse
  from mlflow.environment_variables import MLFLOW_GATEWAY_URI
  from mlflow.exceptions import MlflowException
  from mlflow.gateway.constants import MLFLOW_AI_GATEWAY_MOSAICML_CHAT_SUPPORTED_MODEL_PREFIXES
  from mlflow.utils.uri import append_to_uri_path
label_desc: Use image node_id 5 for calling a global function with example usage: _is_valid_uri(uri) and returns: True, unknown, False