code: def test_check_databricks_secret_scope_access_error():
      mock_dbutils = mock.MagicMock()
      mock_dbutils.secrets.list.side_effect = Exception(
          "no scope access"
      )
      with mock.patch(
          "mlflow.utils.databricks_utils._get_dbutils",
          return_value=mock_dbutils,
      ), mock.patch(
          "mlflow.utils.databricks_utils._logger.warning"
      ) as mock_warning:
          check_databricks_secret_scope_access("scope")
          mock_warning.assert_called_once_with(
              "Unable to access Databricks secret scope 'scope' for OpenAI credentials that will be "
              "used to deploy the model to Databricks Model Serving. Please verify that the current "
              "Databricks user has 'READ' permission for this scope. For more information, see "
              "https://mlflow.org/docs/latest/python_api/openai/index.html#credential-management-for-openai-on-databricks. "  # pylint: disable=line-too-long
              "Error: no scope access"
          )
          mock_dbutils.secrets.list.assert_called_once_with("scope")
  
imports: import builtins
  import sys
  from unittest import mock
  import pytest
  from databricks_cli.configure.provider import DatabricksConfig
  from mlflow.exceptions import MlflowException
  from mlflow.utils import databricks_utils
  from mlflow.utils.databricks_utils import check_databricks_secret_scope_access, get_mlflow_credential_context_by_run_id, get_workspace_info_from_databricks_secrets, get_workspace_info_from_dbutils, is_databricks_default_tracking_uri, is_running_in_ipython_environment
  from mlflow.utils.uri import construct_db_uri_from_profile
  from tests.helper_functions import mock_method_chain
label_desc: Use image node_id 22 for calling a global function with example usage: test_check_databricks_secret_scope_access_error() without return types