code: def display(image, server_name=":0"):
      """Displays the passed ``image``.
  
      :param image: an image to display
      :type image: :class:`~wand.image.Image`
      :param server_name: X11 server name to use.  it is ignored and not used
                          for Mac.  default is ``':0'``
      :type server_name: :class:`str`
  
      """
      if not isinstance(image, Image):
          raise TypeError(
              "image must be a wand.image.Image instance, not "
              + repr(image)
          )
      system = platform.system()
      if system == "Windows":
          try:
              image.save(filename="win:.")
          except DelegateError:
              pass
          else:
              return
      if system in ("Windows", "Darwin"):
          ext = image.format.lower()
          if ext in ("miff", "xc"):
              ext = "png"
          path = tempfile.mktemp(suffix="." + ext)
          image.save(filename=path)
          os.system(
              ("start " if system == "Windows" else "open ") + path
          )
      else:
          library.MagickDisplayImage.argtypes = [
              ctypes.c_void_p,
              ctypes.c_char_p,
          ]
          library.MagickDisplayImage(
              image.wand, str(server_name).encode()
          )
  
file_path: wand/wand/display.py
imports: from __future__ import print_function
  import ctypes
  import os
  import platform
  import sys
  import tempfile
  from .api import library
  from .exceptions import BlobError, DelegateError
  from .image import Image
label_desc: Use image node_id 1 for calling a global function with example usage: display(image, server_name) without return types