def get_by_name_and_type(self, name: str, type: AttributeType) -> Optional[AttributeRoute]:
        """Utility method to get a route by name and type"""
        if name == "id" and AttributeType.ID:
            return self.id
        return self._get_routes_group_by_type(type).get(name)
Utility method to get a route by name and type
argilla/src/argilla/records/_mapping/_routes.py