code: def get_group_by_id(self, group_id) -> typing.Optional['Group']:
          
          for group in self.groups:
  
              if group.group_id == group_id:
                  return group
  
          return None
docs: Args:
              group_id: group id
  
          Returns: Group