def METHOD_NAME(self, method, device):
    """Test AerSimulator reset with for circuits with non-deterministic counts"""
    backend = self.backend(method=method, device=device)
    # For statevector output we can combine deterministic and non-deterministic
    # count output circuits
    shots = 4000
    circuits = ref_reset.reset_circuits_nondeterministic(final_measure=True)
    targets = ref_reset.reset_counts_nondeterministic(shots)
    result = backend.run(circuits, shots=shots).result()
    self.assertSuccess(result)
    self.compare_counts(result, circuits, targets, delta=0.05 * shots)