class_docstr: Base class for viewers.
class_docstr_tok: ["Base","class","for","viewers","."]
code: def show(self, image, **options):
      # save temporary image to disk
      if not (
          image.mode in ("1", "RGBA")
          or (self.format == "PNG" and image.mode == "LA")
      ):
          base = Image.getmodebase(image.mode)
          if image.mode != base:
              image = image.convert(base)
  
      return self.show_image(image, **options)
  
file_path: catboost/contrib/python/Pillow/py2/PIL/ImageShow.py
imports: from __future__ import print_function
  import os
  import subprocess
  import sys
  import tempfile
  from PIL import Image
label_desc: Use image node_id 1 for calling the Viewer obj's underlying member method code with example usage: obj.show(image) and returns: self