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: Print the output, colorized or not, depending on the environment.
  
  Args:
      index (int): The instance number.
      s (str): The string to print.
docstr_tok: ["Print","the","output",",","colorized","or","not",",","depending","on","the","environment",".","Args",":","index","(","int",")",":","The","instance","number",".","s","(","str",")",":","The","string","to","print","."]
code: def __call__(self, index, s):
      """Print the output, colorized or not, depending on the environment.
  
      Args:
          index (int): The instance number.
          s (str): The string to print.
      """
      if self.colorize:
          self._color_wrap(index, s)
      else:
          print(s)
  
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 2 for calling the ColorWrap obj's underlying member method code with example usage: obj.__call__(index, s) without return types