code: def test_success_prob(n_basis, br, prob_ref):
      r"""Test that success_prob returns the correct value."""
      prob = qml.resource.FirstQuantization.success_prob(n_basis, br)
  
      assert prob == prob_ref
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 13 for calling a global function with example usage: test_success_prob(n_basis, br, prob_ref) without return types