code: def resize(self, size):
      oldSize = self.size()
      super().resize(size)
      self.resizeEvent(QtGui.QResizeEvent(size, oldSize))
      self.update()
  
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 5 for calling the Renderer obj's underlying member method code with example usage: obj.resize(size) without return types