code: def get_registry_uri() -> str:
      """
      Get the current registry URI. If none has been specified, defaults to the tracking URI.
  
      :return: The registry URI.
  
      .. code-block:: python
          :caption: Example
  
          # Get the current model registry uri
          mr_uri = mlflow.get_registry_uri()
          print(f"Current model registry uri: {mr_uri}")
  
          # Get the current tracking uri
          tracking_uri = mlflow.get_tracking_uri()
          print(f"Current tracking uri: {tracking_uri}")
  
          # They should be the same
          assert mr_uri == tracking_uri
  
      .. code-block:: text
          :caption: Output
  
          Current model registry uri: file:///.../mlruns
          Current tracking uri: file:///.../mlruns
      """
      return _get_registry_uri_from_context() or get_tracking_uri()
  
imports: import logging
  from functools import partial
  from mlflow.environment_variables import MLFLOW_REGISTRY_URI, MLFLOW_TRACKING_AUTH, MLFLOW_TRACKING_AWS_SIGV4, MLFLOW_TRACKING_CLIENT_CERT_PATH, MLFLOW_TRACKING_INSECURE_TLS, MLFLOW_TRACKING_PASSWORD, MLFLOW_TRACKING_SERVER_CERT_PATH, MLFLOW_TRACKING_TOKEN, MLFLOW_TRACKING_USERNAME
  from mlflow.store._unity_catalog.registry.rest_store import UcModelRegistryStore
  from mlflow.store.db.db_types import DATABASE_ENGINES
  from mlflow.store.model_registry.databricks_workspace_model_registry_rest_store import DatabricksWorkspaceModelRegistryRestStore
  from mlflow.store.model_registry.file_store import FileStore
  from mlflow.store.model_registry.rest_store import RestStore
  from mlflow.tracking._model_registry.registry import ModelRegistryStoreRegistry
  from mlflow.tracking._tracking_service.utils import _resolve_tracking_uri, get_tracking_uri
  from mlflow.utils import rest_utils
  from mlflow.utils._spark_utils import _get_active_spark_session
  from mlflow.utils.databricks_utils import get_databricks_host_creds, warn_on_deprecated_cross_workspace_registry_uri
  from mlflow.utils.uri import _DATABRICKS_UNITY_CATALOG_SCHEME
label_desc: Use image node_id 4 for calling a global function with example usage: get_registry_uri() and returns: unknown