tfsnippet.utils.
maybe_close
Enter a context, and if obj has .close() method, close it when exiting the context.
.close()