code: def __exit__(self, *exc):
      for _on_enter, on_exit in self._handlers:
          on_exit(self, *exc)
  
imports: import contextlib
  import functools
  import json
  import os
  import re
  import click
  from click import shell_completion
  import guild
  from guild import python_util
label_desc: Use image node_id 3 for calling the CmdContext obj's underlying member method code with example usage: obj.__exit__() without return types