def run(in_file: str, k: int) -> None:
    ' Run with args '
    out_file = '.'.join([in_file, str(k), 'out'])
    assert os.path.isfile(out_file)
    expected = open(out_file).read().rstrip()
    cmd = '{} -k {} {} | sort'.format(RUN, k, in_file)
    (rv, out) = getstatusoutput(cmd)
    assert (rv == 0)
    assert (out.rstrip() == expected)
Run with args
def run(in_file: str, k: int) -> None:
    '  '
    out_file = '.'.join([in_file, str(k), 'out'])
    assert os.path.isfile(out_file)
    expected = open(out_file).read().rstrip()
    cmd = '{} -k {} {} | sort'.format(RUN, k, in_file)
    (rv, out) = getstatusoutput(cmd)
    assert (rv == 0)
    assert (out.rstrip() == expected)