code: def get_state(obj):
      lpos = (
          obj.position() if hasattr(obj, "position") else obj.localPos()
      )
      wpos = (
          obj.scenePosition()
          if hasattr(obj, "scenePosition")
          else obj.windowPos()
      )
      gpos = (
          obj.globalPosition()
          if hasattr(obj, "globalPosition")
          else obj.screenPos()
      )
      return lpos, wpos, gpos
  
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 EnterEvent obj's underlying member method code with example usage: obj.get_state(obj) and returns: lpos,  wpos,  gpos