def METHOD_NAME(
    matches,
    video,
    release_info: Union[str, Iterable[str]],
    split="\n",
    **guessit_options
):
    """Update matches set from release info string or Iterable.
    Use the split parameter to iterate over the set delimiter; set None to avoid split."""
    guessit_options["type"] = "episode" if isinstance(video, Episode) else "movie"
    logger.debug("Guessit options to update matches: %s", guessit_options)
    if isinstance(release_info, str):
        release_info = release_info.split(split)
    for release in release_info:
        for release_split in release.split(split):
            logger.debug("Updating matches from release info: %s", release)
            matches |= guess_matches(
                video, guessit(release_split.strip(), guessit_options)
            )
            logger.debug("New matches: %s", matches)
    return matches