def has_leading_dir(paths):
    common_prefix = None
    for path in paths:
        prefix, rest = split_leading_dir(path)
        if not prefix:
            return False
        elif common_prefix is None:
            common_prefix = prefix
        elif prefix != common_prefix:
            return False
    return True
Generate argv for nosetest command
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/utils/__init__.py/has_leading_dir--crossover with--dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tests/main.py/TheanoNoseTester._test_argv