def METHOD_NAME(self, sdfg, state):
    in_edges = state.in_edges(self)
    if len(in_edges) != 2:
        raise ValueError("Expected exactly two inputs to axpy")
    in_memlets = [in_edges[0].data, in_edges[1].data]
    out_edges = state.out_edges(self)
    if len(out_edges) != 1:
        raise ValueError("Expected exactly one output from axpy")
    out_memlet = out_edges[0].data
    size = in_memlets[0].subset.size()
    if len(size) != 1:
        raise ValueError("axpy only supported on 1-dimensional arrays")
    if size != in_memlets[1].subset.size():
        raise ValueError("Inputs to axpy must have equal size")
    if size != out_memlet.subset.size():
        raise ValueError("Output of axpy must have same size as input")
    if (in_memlets[0].wcr is not None or in_memlets[1].wcr is not None or out_memlet.wcr is not None):
        raise ValueError("WCR on axpy memlets not supported")
    return True