def _decorate(self, atype, n, o):
typemap = {"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:type>": "<STR_LIT>"}<EOL>from acorn.logging.decoration import decorate_obj<EOL>try:<EOL><INDENT>otype = typemap[atype]<EOL>decorate_obj(self.shell.user_ns, n, o, otype)<EOL>self._logdef(n, o, otype)<EOL>msg.okay("<STR_LIT>".format(n, o))<EOL><DEDENT>except:<EOL><INDENT>msg.err("<STR_LIT>".format(n, o))<EOL>raise<EOL><DEDENT>
Decorates the specified object for automatic logging with acorn.

        Args:
            atype (str): one of the types specified in :attr:`atypes`.
            varobj: object instance to decorate; no additional type checking is
              performed.