<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def close(self):
 """ Returns the resource to the resource pool. """

        if self._resource is not None:
            self._pool.put_resource(self._resource)
            self._resource = None
            self._pool = None