def METHOD_NAME(old_header, new_header, source):
    """Replace old_header with new_header in source
    Parameters
    ----------
    old_header: str
        Name of header to be replaced
    new_header: str
        Name of replacement header
    source: str
        Text to search
    """
    return re.sub(
        r"""
        (\s*\#\s*include\s*)     # Preprocessor include
        (<|")
        ({header})              # Header name
        (>|")
        """.format(
            header=old_header
        ),
        r"\1\2{header}\4".format(header=new_header),
        source,
        flags=re.VERBOSE,
    )