code: def encode(code, readline=False):
      """Adds escape and control characters for ANSI codes
  
      :param code: pick a constant, any constant
      :type code: int
      :param readline: add readline compatibility, which causes bugs in other formats
      :type content: unicode
      :return: ansi string
      :rtype: unicode
      """
      if readline:
          return "\001\033[" + str(code) + "m\002"
  
      return "\033[" + str(code) + "m"
  
imports: from __future__ import absolute_import, print_function, unicode_literals
  import platform
label_desc: Use image node_id 23 for calling a global function with example usage: encode(code, readline) and returns: unknown, unknown