def METHOD_NAME(self, inp, ndec=1):
    # Hack needed because ecut is not in the pseudos.
    inp.set_vars(ecut=3)
    #v = inp.validate()
    #if v.retcode != 0:
    #    raise RuntimeError(v.err)
    #else:
    #    print("Valid input!")
    # Test validity of individual datasets.
    for dtset in inp.split_datasets():
        v = dtset.abivalidate()
        #assert dtset.decorators == inp.decorators
        #assert len(dtset.decorators) == ndec
        if v.retcode != 0:
            raise RuntimeError("Wrong input. See {0}".format(v))
        else:
            print("Valid input!")