<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _with_context(self, *args, **kwargs):
 """As the `with_context` class method but for recordset."""

        context = dict(args[0] if args else self.env.context, **kwargs)
        return self.with_env(self.env(context=context))