code: def test_active_spaces(
      n_electrons,
      n_orbitals,
      multiplicity,
      act_electrons,
      act_orbitals,
      core_ref,
      active_ref,
  ):
      r"""Test the correctness of the generated active spaces"""
  
      core, active = qchem.active_space(
          n_electrons,
          n_orbitals,
          mult=multiplicity,
          active_electrons=act_electrons,
          active_orbitals=act_orbitals,
      )
  
      assert core == core_ref
      assert active == active_ref
  
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 9 for calling a global function with example usage: test_active_spaces(n_electrons, n_orbitals, multiplicity, act_electrons, act_orbitals, core_ref, active_ref) without return types