def offsets(self, group=None):
if not group:<EOL><INDENT>return {<EOL>'<STR_LIT>': self.offsets('<STR_LIT>'),<EOL>'<STR_LIT>': self.offsets('<STR_LIT>'),<EOL>'<STR_LIT>': self.offsets('<STR_LIT>'),<EOL>'<STR_LIT>': self.offsets('<STR_LIT>')<EOL>}<EOL><DEDENT>else:<EOL><INDENT>return dict(deepcopy(getattr(self._offsets, group)))<EOL><DEDENT>
Get internal consumer offset values

        Keyword Arguments:
            group: Either "fetch", "commit", "task_done", or "highwater".
                If no group specified, returns all groups.

        Returns:
            A copy of internal offsets struct