code: def _get_registry_uri_from_context():
      global _registry_uri
      if _registry_uri is not None:
          return _registry_uri
      elif (uri := MLFLOW_REGISTRY_URI.get()) or (
          uri := _get_registry_uri_from_spark_session()
      ):
          return uri
      return _registry_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 3 for calling a global function with example usage: _get_registry_uri_from_context() and returns: _registry_uri, _registry_uri, uri