from typing import Tuple


def yaml_remove_split(docstr: str) -> Tuple[str, str]:
    """Extract parameter summary within :yaml: tags in docstring,
    and clean up the :yaml: tag for the full docstring.
    Return cleaned up docstring, and summary version."""
    key = ":yaml:"
    summary = ""
    i_start = docstr.find(key)
    while i_start >= 0:
        i_key_stop = i_start + len(key) + 1  # end of :yaml:
        i_stop = docstr.find("`", i_key_stop) + 1  # end of content after it
        fullkey = docstr[i_start:i_stop]  # includes `content` after key
        summary = docstr[i_key_stop : (i_stop - 1)]  # just the content
        docstr = docstr.replace(fullkey, summary)
        # Search for any other keys:
        i_start = docstr.find(key)
    return docstr, summary