code: def test_init_metrics_unknown():
      """Test if the metrics initialization raises an error when the metrics provided are unknown."""
      with pytest.raises(ValueError) as err:
          PermutationImportance(
              predictor=lambda x: x, loss_fns=["unknown"]
          )
  
      assert re.search("Unknown .+ name.", str(err.value))
  
imports: import re
  from copy import deepcopy
  import matplotlib.pyplot
  import numpy
  import pytest
  from pytest_lazyfixture import lazy_fixture
  from sklearn.metrics import accuracy_score, f1_score, max_error
  from alibi.api.defaults import DEFAULT_DATA_PERMUTATION_IMPORTANCE, DEFAULT_META_PERMUTATION_IMPORTANCE
  from alibi.api.interfaces import Explanation
  from alibi.explainers import PermutationImportance, plot_permutation_importance
label_desc: Use image node_id 4 for calling a global function with example usage: test_init_metrics_unknown() without return types