code: def test_hf_state(electrons, orbitals, exp_state):
      r"""Test the correctness of the generated occupation-number vector"""
  
      res_state = qchem.hf_state(electrons, orbitals)
  
      assert len(res_state) == len(exp_state)
      assert np.allclose(res_state, exp_state)
  
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 7 for calling a global function with example usage: test_hf_state(electrons, orbitals, exp_state) without return types