code: def test_deepfool_run_raises(
      fmodel_and_data_ext_for_attacks: ModeAndDataAndDescription,
  ) -> None:
      (fmodel, x, y), _, _ = fmodel_and_data_ext_for_attacks
      if isinstance(x, ep.NumPyTensor):
          pytest.skip()
  
      attack = fbn.attacks.L2DeepFoolAttack(loss="invalid")  # type: ignore
      with pytest.raises(ValueError, match="expected loss to"):
          attack.run(fmodel, x, y)
  
file_path: foolbox/tests/test_attacks_raise.py
imports: from typing import List, Tuple, Any
  import pytest
  import eagerpy
  import foolbox
  from conftest import ModeAndDataAndDescription
label_desc: Use image node_id 3 for calling a global function with example usage: test_deepfool_run_raises(fmodel_and_data_ext_for_attacks) without return types