def do_nothing_context():
    "\n    Do nothing.\n\n    Useful when you have a block of code that only requires a context manager sometimes,\n    and you don't want to repeat the context managed block.\n\n    Returns\n    -------\n    contextmanager\n        A do nothing context manager.\n    "
    return contextmanager(_nothing)()
Do nothing.

Useful when you have a block of code that only requires a context manager sometimes,
and you don't want to repeat the context managed block.

Returns
-------
contextmanager
    A do nothing context manager.
def do_nothing_context():
    "\n    Do nothing.\n\n    Useful when you have a block of code that only requires a context manager sometimes,\n    and you don't want to repeat the context managed block.\n\n    Returns\n    -------\n    contextmanager\n        A do nothing context manager.\n    "
    return contextmanager(_nothing)()