def _calculate_common_memory(kvs):
    mems = []
    for key, val in kvs:
        cur_val, _ = _get_cur_mem(key, val)
        mems.append(cur_val)
    return numpy.median(mems)
Return ``True`` is ``path`` directory has no files or folders in it.
dataset/ETHPy150Open chapmanb/bcbio-nextgen-vm/bcbiovm/docker/devel.py/_calculate_common_memory--crossover with--dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/galaxy/utils.py/_dir_is_empty