code: def test_Vector_init():
      """Test construction of Vector objects from a variety of source types."""
      # separate values without z
      v = pg.Vector(0, 1)
      assert v.z() == 0
  
      v = pg.Vector(0.0, 1.0)
      assert v.z() == 0
  
      # separate values with 3 args
      v = pg.Vector(0, 1, 2)
      assert v.x() == 0
      assert v.y() == 1
      assert v.z() == 2
      v = pg.Vector(0.0, 1.0, 2.0)
      assert v.x() == 0
      assert v.y() == 1
      assert v.z() == 2
  
      # all in a list
      v = pg.Vector([0, 1])
      assert v.z() == 0
      v = pg.Vector([0, 1, 2])
      assert v.z() == 2
  
      # QSizeF
      v = pg.Vector(QtCore.QSizeF(1, 2))
      assert v.x() == 1
      assert v.z() == 0
  
      # QPoint
      v = pg.Vector(QtCore.QPoint(0, 1))
      assert v.z() == 0
      v = pg.Vector(QtCore.QPointF(0, 1))
      assert v.z() == 0
  
      # QVector3D
      qv = QtGui.QVector3D(1, 2, 3)
      v = pg.Vector(qv)
      assert v == qv
  
      with pytest.raises(Exception):
          _ = pg.Vector(1, 2, 3, 4)
  
imports: import pytest
  import pyqtgraph
  from pyqtgraph.Qt import QtCore, QtGui
label_desc: Use image node_id 1 for calling a global function with example usage: test_Vector_init() without return types