class_docstr: Base class for viewers.
class_docstr_tok: ["Base","class","for","viewers","."]
docstr: The main function for displaying an image.
  Converts the given image to the target format and displays it.
docstr_tok: ["The","main","function","for","displaying","an","image",".","Converts","the","given","image","to","the","target","format","and","displays","it","."]
code: def show(self, image, **options):
      """
      The main function for displaying an image.
      Converts the given image to the target format and displays it.
      """
  
      if not (
          image.mode in ("1", "RGBA")
          or (self.format == "PNG" and image.mode in ("I;16", "LA"))
      ):
          base = Image.getmodebase(image.mode)
          if image.mode != base:
              image = image.convert(base)
  
      return self.show_image(image, **options)
  
imports: import os
  import shutil
  import subprocess
  import sys
  import tempfile
  from shlex import quote
  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