code: def test_success_prob_error(n_basis, br):
      r"""Test that success_prob raises an error with incorrect inputs."""
      with pytest.raises(ValueError, match="must be a positive"):
          qml.resource.FirstQuantization.success_prob(n_basis, br)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 14 for calling a global function with example usage: test_success_prob_error(n_basis, br) without return types