code: def test_backend_plan(func, mock):
      x = np.arange(20).reshape((10, 2))
  
      with pytest.raises(NotImplementedError, match="precomputed plan"):
          func(x, plan="foo")
  
      with set_backend(mock_backend, only=True):
          mock.number_calls = 0
          y = func(x, plan="foo")
          assert_equal(y, mock.return_value)
          assert_equal(mock.number_calls, 1)
          assert_equal(mock.last_args[1]["plan"], "foo")
  
file_path: catboost/contrib/python/scipy/py3/scipy/fft/tests/test_backend.py
imports: import numpy
  import scipy.fft
  from scipy.fft import set_backend
  from scipy.fft import _pocketfft
  from .None import mock_backend
  from numpy.testing import assert_allclose, assert_equal
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_backend_plan(func, mock) without return types