nullcontext

odl.util.utility.nullcontext(enter_result=None)[source]

Backport of the Python >=3.7 trivial context manager.

See the Python documentation for details.