def get_marks_from_obj(obj, marker_name):
    """Get a specific group of markers from a task function."""
    return [
        marker
        for marker in getattr(obj, "pytaskmark", [])
        if marker.name == marker_name
    ]