code: def ircformat(color, text):
      if len(color) < 1:
          return text
      add = sub = ""
      if "_" in color:  # italic
          add += "\x1D"
          sub = "\x1D" + sub
          color = color.strip("_")
      if "*" in color:  # bold
          add += "\x02"
          sub = "\x02" + sub
          color = color.strip("*")
      # underline (\x1F) not supported
      # backgrounds (\x03FF,BB) not supported
      if (
          len(color) > 0
      ):  # actual color - may have issues with ircformat("red", "blah")+"10" type stuff
          add += "\x03" + str(IRC_COLOR_MAP[color]).zfill(2)
          sub = "\x03" + sub
      return add + text + sub
      return "<" + add + ">" + text + "</" + sub + ">"
  
file_path: catboost/contrib/python/Pygments/py3/pygments/formatters/irc.py
imports: from pygments.formatter import Formatter
  from pygments.token import Keyword, Name, Comment, String, Error, Number, Operator, Generic, Token, Whitespace
  from pygments.util import get_choice_opt
label_desc: Use image node_id 1 for calling a global function with example usage: ircformat(color, text) and returns: unknown, unknown, text