code: def test_exceptions_two_particle(v_me, core, active, msg_match):
      """Test that the function `'two_particle'` throws an exception
      if the dimension of the matrix elements array is not a 4D array or
      if the indices of core and/or active orbitals are out of range."""
  
      with pytest.raises(ValueError, match=msg_match):
          qchem.two_particle(v_me, core=core, active=active)
  
imports: import os
  import numpy
  import pytest
  from pennylane import qchem
label_desc: Use image node_id 2 for calling a global function with example usage: test_exceptions_two_particle(v_me, core, active, msg_match) without return types