code: def test_accuracy(fmodel_and_data: ModelAndData) -> None:
      fmodel, x, y = fmodel_and_data
      accuracy = fbn.accuracy(fmodel, x, y)
      assert 0 <= accuracy <= 1
      assert accuracy > 0.5
      y = fmodel(x).argmax(axis=-1)
      accuracy = fbn.accuracy(fmodel, x, y)
      assert accuracy == 1
  
imports: from typing import Tuple
  import foolbox
  import eagerpy
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_accuracy(fmodel_and_data) without return types