code: def serialize_mouse_enum(*args):
      # PySide6 (opt-in in 6.3.1) and PyQt6
      # - implemented as python enums
      # - can pickle enums and flags
      # - PyQt6 cannot cast to int
      # PyQt5 5.12, PyQt5 5.15, PySide2 5.15, PySide6 can pickle enums but not flags
      # PySide2 5.12 cannot pickle enums nor flags
      # MouseButtons and KeyboardModifiers are flags
      return [x if isinstance(x, enum.Enum) else int(x) for x in args]
  
imports: from ..Qt import QT_LIB, QtCore, QtGui, QtWidgets
  import atexit
  import enum
  import mmap
  import os
  import sys
  import tempfile
  from ..None import Qt
  from ..None import CONFIG_OPTIONS
  from ..None import multiprocess
  from .GraphicsView import GraphicsView
label_desc: Use image node_id 1 for calling a global function with example usage: serialize_mouse_enum() and returns: unknown