code: def imshow(img, win_name="", wait_time=0):
      """Show an image.
  
      Args:
          img (str or ndarray): The image to be displayed.
          win_name (str): The window name.
          wait_time (int): Value of waitKey param.
      """
      cv2.imshow(win_name, imread(img))
      if wait_time == 0:  # prevent from hanging if windows was closed
          while True:
              ret = cv2.waitKey(1)
  
              closed = (
                  cv2.getWindowProperty(win_name, cv2.WND_PROP_VISIBLE)
                  < 1
              )
              # if user closed window or if some key pressed
              if closed or ret != -1:
                  break
      else:
          ret = cv2.waitKey(wait_time)
  
imports: import cv2
  import numpy
  from annotator.uniformer.mmcv.image import imread, imwrite
  from .color import color_val
label_desc: Use image node_id 1 for calling a global function with example usage: imshow(img, win_name, wait_time) without return types