def METHOD_NAME(args):
    assert (args.collection is None) == (args.queries is None), \
        "For training, both (or neither) --collection and --queries must be supplied." \
        "If neither is supplied, the --triples file must contain texts (not PIDs)."