def METHOD_NAME(self, msg, V=1):
    # type: (str, int) -> Iterator[None]
    if not hasattr(self._local, "parent"):
        self._local.parent = Trace(msg, verbosity=V, clock=self._clock)
    else:
        parent = self._local.parent
        self._local.parent = Trace(msg, parent=parent, verbosity=V, clock=self._clock)
    self.print_trace_snippet()
    yield
    self._local.parent.stop()
    if self._local.parent.parent is not None:
        self._local.parent = self._local.parent.parent
    else:
        self.print_trace()
        self._local.parent = None