<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wait(self, **kwargs):
 """Wait until any pending asynchronous requests are finished for this collection."""

        if self.request:
            self.request.wait(**kwargs)
            self.request = None
        return self.inflate()