def METHOD_NAME(video, title=None, episode_title=None, **kwargs):
    """Whether the movie matches the movie `title` or the series matches the `episode_title`.
    :param video: the video.
    :type video: :class:`~subliminal.video.Video`
    :param str title: the movie title.
    :param str episode_title: the series episode title.
    :return: whether there's a match
    :rtype: bool
    """
    if isinstance(video, Episode):
        return video.title and sanitize(episode_title) == sanitize(video.title)
    if isinstance(video, Movie):
        return video.title and sanitize(title) == sanitize(video.title)