def get_lib_paths(self, path):
        egg_path = os.path.join(path, 'EGG-INFO')
        if os.path.isdir(egg_path):
            # Unzipped egg metadata.
            return self.get_top_level_libs(egg_path)

        if os.path.isfile(path):
            # Zipped egg? Should we try to unpack it?
            # unpack_archive(path, self.eggs_dir)
            return None

        # Last try: develop eggs.
        elif os.path.isdir(path):
            files = os.listdir(path)
            for filename in files:
                if filename.endswith('.egg-info'):
                    egg_path = os.path.join(path, filename)
                    return self.get_top_level_libs(egg_path)
Returns a (start, end, total, queryset) tuple for each batch in the given
dataset/ETHPy150Open moraes/tipfy/manage/action_install_packages.py/Recipe.get_lib_paths--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/util.py/batch_qs