code: def create_group(cls, prefix: str, name: str) -> ErrorGroup:
          
          group = cls.ErrorGroup(prefix, name)
          cls.groups.append(group)
          return group
docs: Create a new error group and return it.