code: def updateSize():
      global ui, vb
      frames = ui.framesSpin.value()
      width = ui.widthSpin.value()
      height = ui.heightSpin.value()
      dtype = xp.dtype(str(ui.dtypeCombo.currentText()))
      rgb = 3 if ui.rgbCheck.isChecked() else 1
      ui.sizeLabel.setText(
          "%d MB"
          % (frames * width * height * rgb * dtype.itemsize / 1e6)
      )
      vb.setRange(QtCore.QRectF(0, 0, width, height))
  
file_path: pyqtgraph/pyqtgraph/examples/VideoSpeedTest.py
imports: import argparse
  import itertools
  import sys
  import numpy
  from utils import FrameCounter
  import pyqtgraph
  from pyqtgraph.Qt import QtCore, QtGui, QtWidgets
  import VideoTemplate_generic
label_desc: Use image node_id 4 for calling a global function with example usage: updateSize() without return types