<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _patched_pep257():
 """Monkey-patch pep257 after imports to avoid info logging."""

    import pep257

    if getattr(pep257, "log", None):
        def _dummy(*args, **kwargs):
            del args
            del kwargs

        old_log_info = pep257.log.info
        pep257.log.info = _dummy  # suppress(unused-attribute)
    try:
        yield
    finally:
        if getattr(pep257, "log", None):
            pep257.log.info = old_log_info