def METHOD_NAME(self, diff_method, len_info):
    """Test specs works when state returned"""
    dev = qml.device("default.qubit", wires=2)
    @qml.qnode(dev, diff_method=diff_method)
    def circuit():
        return qml.state()
    info_func = qml.specs(circuit)
    info = info_func()
    assert len(info) == len_info
    assert info["resources"] == qml.resource.Resources(gate_types=defaultdict(int))
    assert info["num_observables"] == 1
    assert info["num_diagonalizing_gates"] == 0