code: def _pixmap_to_ndarray(pixmap):
      from qtpy.QtGui import QImage
  
      img = pixmap.toImage()
      img = img.convertToFormat(QImage.Format.Format_RGBA8888)
      ptr = img.bits()
      count = img.height() * img.width() * 4
      if hasattr(ptr, "setsize"):  # PyQt
          ptr.setsize(count)
      data = np.frombuffer(ptr, dtype=np.uint8, count=count).copy()
      data.shape = (img.height(), img.width(), 4)
      return data / 255.0
  
imports: import collections.abc
  import functools
  import os
  import platform
  import signal
  import sys
  from colorsys import rgb_to_hls
  from contextlib import contextmanager
  from ctypes import c_char_p, c_void_p, cdll
  from pathlib import Path
  import numpy
  from ...fixes import _compare_version
  from ...utils import _check_qt_version, _validate_type, logger, warn
  from ..utils import _get_cmap
label_desc: Use image node_id 14 for calling a global function with example usage: _pixmap_to_ndarray(pixmap) and returns: unknown