code: def test_dataset_attack_raises(
      fmodel_and_data_ext_for_attacks: ModeAndDataAndDescription,
  ) -> None:
      (fmodel, x, y), _, _ = fmodel_and_data_ext_for_attacks
  
      attack = fbn.attacks.DatasetAttack()
  
      # that that running before feed fails properly
      with pytest.raises(ValueError, match="feed"):
          attack.run(fmodel, x, y)
  
      attack.feed(fmodel, x)
      attack.run(fmodel, x, y)
      assert attack.inputs is not None
      n = len(attack.inputs)
  
      # test that feed() after run works
      attack.feed(fmodel, x)
      attack.run(fmodel, x, y)
      assert len(attack.inputs) > n
  
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 12 for calling a global function with example usage: test_dataset_attack_raises(fmodel_and_data_ext_for_attacks) without return types