code: def __enter__(self):
      for on_enter, _on_exit in self._handlers:
          on_enter(self)
  
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 2 for calling the CmdContext obj's underlying member method code with example usage: obj.__enter__() without return types