def get_group_by_name(self, group_name: str) -> typing.Optional['<STR_LIT>']:
VALID_STR.validate(group_name, '<STR_LIT>')<EOL>for group in self.groups:<EOL><INDENT>if group.group_name == group_name:<EOL><INDENT>return group<EOL><DEDENT><DEDENT>return None<EOL>
Gets a group from its name

Args:
    group_name:

Returns: Group