code: def _clean(self):
          
          if CleanupPolicy.EVERYTHING in self.cleanup:
                  self.cleanup_containers()
                  self.cleanup_volumes()
                  self.cleanup_images()
                  self._clean_tmp_dirs()
          else:
              if CleanupPolicy.CONTAINERS in self.cleanup:
                  self.cleanup_containers()
              if CleanupPolicy.VOLUMES in self.cleanup:
                  self.cleanup_volumes()
              if CleanupPolicy.IMAGES in self.cleanup:
                  self.cleanup_images()
              if CleanupPolicy.TMP_DIRS in self.cleanup:
                  self._clean_tmp_dirs()
docs: Method for cleaning according to object cleanup policy value
  
          :return: None