code: def is_color_supported():
      """
      Returns ``True`` if the running system's terminal supports
      color, and ``False`` otherwise.
  
      Notes
      -----
      Code from Djano: https://github.com/django/django/blob/\
      master/django/core/management/color.py
  
      Returns
      -------
      bool
      """
      supported_platform = sys.platform != "Pocket PC" and (
          sys.platform != "win32" or "ANSICON" in os.environ
      )
  
      # isatty is not always implemented
      is_a_tty = hasattr(sys.stdout, "isatty") and sys.stdout.isatty()
      is_support = supported_platform and is_a_tty
      return is_support
  
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 1 for calling a global function with example usage: is_color_supported() and returns: is_support