<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def refresh(self, **kwargs):
 """Refreshes stats attached to an object"""

        self.resource.refresh(**kwargs)
        self.rdict = self.resource.entries
        self._update_stats()