code: def markup(self, text, **kw):
      esc = []
      for name in kw:
          if name not in self._esctable:
              raise ValueError("unknown markup: %r" % (name,))
          if kw[name]:
              esc.append(self._esctable[name])
      return self._escaped(text, tuple(esc))
  
imports: import sys, os, unicodedata
  import py
  from py.builtin import text, bytes
label_desc: Use image node_id 7 for calling the TerminalWriter obj's underlying member method code with example usage: obj.markup(text) and returns: self