code: def test_exception_spinz(orbitals, msg_match):
      """Test that the function `'spin_z'` throws an exception if the
      number of orbitals is less than zero."""
  
      with pytest.raises(ValueError, match=msg_match):
          qchem.spin.spinz(orbitals)
  
file_path: pennylane/tests/qchem/test_spin.py
imports: import pytest
  import pennylane
  from pennylane import Identity, PauliX, PauliY, PauliZ
  from pennylane import numpy
  from pennylane import qchem
  from pennylane.operation import enable_new_opmath, disable_new_opmath
label_desc: Use image node_id 5 for calling a global function with example usage: test_exception_spinz(orbitals, msg_match) without return types