code: def test_inconsistent_active_spaces(
      n_electrons,
      n_orbitals,
      multiplicity,
      act_electrons,
      act_orbitals,
      message_match,
  ):
      r"""Test that an error is raised if an inconsistent active space is generated"""
  
      with pytest.raises(ValueError, match=message_match):
          qchem.active_space(
              n_electrons,
              n_orbitals,
              mult=multiplicity,
              active_electrons=act_electrons,
              active_orbitals=act_orbitals,
          )
  
imports: import os
  import sys
  import functools
  from unittest.mock import patch
  import pytest
  import pennylane
  from pennylane import qchem
  from pennylane import numpy
  from pennylane.templates.subroutines import UCCSD
label_desc: Use image node_id 10 for calling a global function with example usage: test_inconsistent_active_spaces(n_electrons, n_orbitals, multiplicity, act_electrons, act_orbitals, message_match) without return types