code: def _format_message(self, tags, args):
      if isinstance(args[-1], dict):
          extra = args[-1]
          args = args[:-1]
      else:
          extra = {}
  
      content = " ".join(map(str, args))
      indent = "  " * self.indent
  
      lines = ["%s%s [%s]\n" % (indent, content, ":".join(tags))]
  
      for name, value in extra.items():
          lines.append("%s    %s: %s\n" % (indent, name, value))
  
      return "".join(lines)
  
file_path: catboost/contrib/python/pluggy/py2/pluggy/_tracing.py
label_desc: Use image node_id 3 for calling the TagTracer obj's underlying member method code with example usage: obj._format_message(tags, args) and returns: str