@classmethod<EOL><INDENT>@contextlib.contextmanager<EOL>def batch(cls, user):<DEDENT>
cls._enter_batch_context(user)<EOL>try:<EOL><INDENT>yield<EOL><DEDENT>finally:<EOL><INDENT>cls._exit_batch_context(user)<EOL><DEDENT>
Marks the entry point for a batch for the given user.