def METHOD_NAME():
    """
    ContextManager to suppress stderr messages
    http://stackoverflow.com/a/1810086/882918
    """
    savestderr = sys.stderr
    class Devnull:
        """ /dev/null incarnation as output-stream-like object """
        def write(self, _):
            """ Write method - just does nothing"""
            pass  # lint-amnesty, pylint: disable=unnecessary-pass
    sys.stderr = Devnull()
    try:
        yield
    finally:
        sys.stderr = savestderr