code: def get_state(obj, picklable=False):
      typ = obj.type()
      if picklable:
          (typ,) = serialize_mouse_enum(typ)
      return (typ,)
  
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 the LeaveEvent obj's underlying member method code with example usage: obj.get_state(obj, picklable) and returns: typ