def get_group_by_id(self, group_id: str) -> typing.Optional['<STR_LIT>']:
VALID_POSITIVE_INT.validate(group_id, '<STR_LIT>', exc=ValueError)<EOL>for group in self.groups:<EOL><INDENT>if group.group_id == group_id:<EOL><INDENT>return group<EOL><DEDENT><DEDENT>return None<EOL>
Gets a group by id

Args:
    group_id: group id

Returns: Group