def pattern_from_multiline(multiline, pattern):
    """Return only lines that contain the pattern

    Parameters
    ----------
    multiline - multiline str        
    pattern - str

    Returns
    -------
    multiline str containing pattern
    """

    return "\n".join([line for line in multiline.splitlines() if pattern in line])