def METHOD_NAME(self, image):
    """
    Method that returns list of packages to be reinstalled by any of
    modules or directly in the image
    """
    all_modules = self.modules(image)
    packages = []
    for module in all_modules:
        if "packages" in module and "reinstall" in module.packages:
            packages += module.packages.reinstall
    return packages