code: def test_mlflow_login_noninteractive():
      # Forces mlflw.utils.credentials._validate_databricks_auth to raise `MlflowException()`
      with patch(
          "mlflow.utils.credentials._validate_databricks_auth",
          side_effect=MlflowException(
              "Failed to validate databricks credentials."
          ),
      ):
          with pytest.raises(
              MlflowException,
              match="No valid Databricks credentials found while running in non-interactive mode",
          ):
              login(backend="databricks", interactive=False)
  
file_path: mlflow/tests/utils/test_credentials.py
imports: from unittest import mock
  from unittest.mock import patch
  import pytest
  from mlflow import get_tracking_uri
  from mlflow.environment_variables import MLFLOW_TRACKING_PASSWORD, MLFLOW_TRACKING_USERNAME
  from mlflow.exceptions import MlflowException
  from mlflow.utils.credentials import login, read_mlflow_creds
label_desc: Use image node_id 5 for calling a global function with example usage: test_mlflow_login_noninteractive() without return types