def METHOD_NAME(dmesg_stdout, skip_messages):
    """Remove some messages from a dmesg buffer.
    This method will remove some lines in a dmesg buffer if some strings are
    present. Returning the same buffer, but with less lines (in case of match).
    :dmesg_stdout: dmesg messages from which filter should be applied. This
                   must be a decoded output buffer with new lines.
    :type dmesg_stdout: str
    :skip_messages: list of strings to be removed
    :type skip_messages: list
    """
    def filter_strings(line):
        return not any([string in line for string in skip_messages])
    return "\n".join(filter(None, filter(filter_strings, dmesg_stdout.splitlines())))