<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_for_logs_matching(self, matcher, timeout=10, encoding='utf-8', **logs_kwargs):
 """ Wait for logs matching the given matcher. """

        wait_for_logs_matching(
            self.inner(), matcher, timeout=timeout, encoding=encoding,
            **logs_kwargs)