code: def enabled(self):
          
          # In auto-detection mode color enabled when terminal attached
          if self._mode == COLOR_AUTO:
              return sys.stdout.isatty()
          return self._mode == COLOR_ON
docs: True if coloring is currently enabled