code: def test_exceptions_one_particle(t_me, core, active, msg_match):
      """Test that the function `'one_particle'` throws an exception
      if the matrix elements array is not a 2D array or if the indices
      of core and/or active orbitals are out of range."""
  
      with pytest.raises(ValueError, match=msg_match):
          qchem.one_particle(t_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_one_particle(t_me, core, active, msg_match) without return types