def _test_clusterk(fn_name, parallel_file, arg_file):
    test_dir = utils.safe_makedir(os.path.expanduser("~/tmp/bcbiotest"))
    shutil.copy(parallel_file, test_dir)
    shutil.copy(arg_file, test_dir)
    with utils.chdir(test_dir):
        subprocess.check_call(["bcbio_vm.py", "runfn", fn_name, parallel_file, arg_file])
Do local runs of equivalent
dataset/ETHPy150Open chapmanb/bcbio-nextgen-vm/bcbiovm/clusterk/clusterktasks.py/_test_clusterk