def METHOD_NAME(tmpdir, argparse_params, metadata_rows, output_sorted_expected):
    """Test that various relative dates work"""
    out_fn = str(tmpdir / "filtered.txt")
    meta_fn = write_metadata(tmpdir, (("strain","date"),
                                      *metadata_rows))
    args = parse_args(f'--metadata {meta_fn} --output-strains {out_fn} {argparse_params}')
    run(args)
    with open(out_fn) as f:
        output_sorted = sorted(line.rstrip() for line in f)
    assert output_sorted == output_sorted_expected