def METHOD_NAME(self, name: str) -> dict[str, Any]:
    """
    Get group entry for groupname
    """
    for e in self.group:
        if name == e["gr_name"]:
            return e
    raise KeyError("getgrnam(): name not found in group file: " + name)