docstr: Set this item's parent in the scenegraph hierarchy.
code: def setParentItem(self, item):
      """Set this item's parent in the scenegraph hierarchy."""
      if self.__parent is not None:
          self.__parent.__children.remove(self)
      if item is not None:
          item.__children.add(self)
      self.__parent = item
  
      if (
          self.__parent is not None
          and self.view() is not self.__parent.view()
      ):
          if self.view() is not None:
              self.view().removeItem(self)
          self.__parent.view().addItem(self)
  
imports: from OpenGL.GL import *
  from OpenGL import GL
  from ..None import Transform3D
  from ..Qt import QtCore
label_desc: Use image node_id 2 for calling the GLGraphicsItem obj's underlying member method code with example usage: obj.setParentItem(item) without return types