code: def test_no_fairlearn(importlib_mock):
      importlib_mock.side_effect = ModuleNotFoundError(
          "No module named 'fairlearn.metrics'"
      )
  
      with pytest.raises(Exception) as exc:
          FairnessDashboard(
              sensitive_features={"a": [0, 1], "b": [0, 1]},
              y_true=[0, 1],
              y_pred=[0, 1],
          )
  
      assert (
          MODULE_NOT_INSTALLED_ERROR_MESSAGE.format("fairlearn.metrics")
          in exc.value.args[0]
      )
  
imports: from unittest.mock import patch
  import pytest
  from raiwidgets import FairnessDashboard
  from raiwidgets.fairness_metric_calculation import MODULE_NOT_INSTALLED_ERROR_MESSAGE
label_desc: Use image node_id 1 for calling a global function with example usage: test_no_fairlearn(importlib_mock) without return types