<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def as_user(self, user, password):
 """ A context-manager for ``get_user_client``. Allows the execution of commands as a different user with ease. Example: """


        with self.options(user=user, password=password):
            yield self