def METHOD_NAME(self):
    collected = gc.collect()
    self.log.debug("Collected %d objects", collected)
    # Copy garbage so it is not modified while iterate over it.
    uncollectable = gc.garbage[:]
    if uncollectable:
        uncollectable = [saferepr(obj) for obj in uncollectable]
        self.log.warning("Found %d uncollectable objects: %s",
                         len(uncollectable), uncollectable)
    self._stats['uncollectable_obj'] = len(uncollectable)