langchain/document_loaders/youtube.py/GoogleApiYoutubeLoader/validate_channel_or_videoIds_is_set
class GoogleApiYoutubeLoader:    def validate_channel_or_videoIds_is_set(
        cls, values: Dict[str, Any]
    ) -> Dict[str, Any]:
        """Validate that either folder_id or document_ids is set, but not both."""
        if not values.get("channel_name") and not values.get("video_ids"):
            raise ValueError("Must specify either channel_name or video_ids")
        return values