def METHOD_NAME(self, observables: ListOrDict[OperatorBase]):
    """Tests evaluator of auxiliary operators for algorithms."""
    ansatz = EfficientSU2(2)
    parameters = np.array(
        [1.2, 4.2, 1.4, 2.0, 1.2, 4.2, 1.4, 2.0, 1.2, 4.2, 1.4, 2.0, 1.2, 4.2, 1.4, 2.0],
        dtype=float,
    )
    bound_ansatz = ansatz.bind_parameters(parameters)
    expected_result = self.get_exact_expectation(bound_ansatz, observables)
    for backend_name in self.backend_names:
        shots = 4096 if backend_name == "qasm_simulator" else 1
        decimal = (
            1 if backend_name == "qasm_simulator" else 6
        )  # to accommodate for qasm being imperfect
        with self.subTest(msg=f"Test {backend_name} backend."):
            backend = BasicAer.get_backend(backend_name)
            with self.assertWarns(DeprecationWarning):
                quantum_instance = QuantumInstance(
                    backend=backend,
                    shots=shots,
                    seed_simulator=self.seed,
                    seed_transpiler=self.seed,
                )
                expectation = ExpectationFactory.build(
                    operator=self.h2_op,
                    backend=quantum_instance,
                )
            with self.subTest(msg="Test QuantumCircuit."):
                self._run_test(
                    expected_result,
                    bound_ansatz,
                    decimal,
                    expectation,
                    observables,
                    quantum_instance,
                )
            with self.subTest(msg="Test QuantumCircuit with Backend."):
                self._run_test(
                    expected_result,
                    bound_ansatz,
                    decimal,
                    expectation,
                    observables,
                    backend,
                )
            with self.subTest(msg="Test Statevector."):
                statevector = Statevector(bound_ansatz)
                self._run_test(
                    expected_result,
                    statevector,
                    decimal,
                    expectation,
                    observables,
                    quantum_instance,
                )
            with self.assertWarns(DeprecationWarning):
                with self.subTest(msg="Test StateFn."):
                    statefn = StateFn(bound_ansatz)
                    self._run_test(
                        expected_result,
                        statefn,
                        decimal,
                        expectation,
                        observables,
                        quantum_instance,
                    )