code: def create_style(ansi_code, use_bright_mode=False):
      """
      Create style based on ANSI code number.
  
      Parameters
      ----------
      ansi_code : int
          ANSI style code.
  
      Returns
      -------
      function
          Function that takes string argument and add ANDI styles
          if its possible.
      """
  
      def style(text):
          if is_color_supported():
              mode = int(use_bright_mode)
              return "\033[{};{}m{}\033[0m".format(
                  mode, ansi_code, text
              )
          return text
  
      return style
  
imports: from __future__ import print_function, unicode_literals
  import os
  import sys
  from .config import Configurable
  from .properties import BaseProperty
label_desc: Use image node_id 2 for calling a global function with example usage: create_style(ansi_code, use_bright_mode) and returns: style, text, str