class_docstr: A callable that will print text in a different color depending on the instance.
  
  Up to 6 if standard output is a terminal or a Jupyter notebook cell.
docstr: Initialize the class.
  
  Args:
      force (bool): If True, render colorizes output no matter where the
          output is (default: False).
docstr_tok: ["Initialize","the","class",".","Args",":","force","(","bool",")",":","If","True",",","render","colorizes","output","no","matter","where","the","output","is","(","default",":","False",")","."]
code: def __init__(self, force=False):
      """Initialize the class.
  
      Args:
          force (bool): If True, render colorizes output no matter where the
              output is (default: False).
      """
      self.colorize = (
          force
          or sys.stdout.isatty()
          or os.environ.get("JPY_PARENT_PID", None)
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/logs.py
imports: from __future__ import absolute_import
  import collections
  import functools
  import os
  import sys
label_desc: Use image node_id 1 to create a new ColorWrap object from inherited base classes: object with example: obj = ColorWrap(force)