code: def test_sitevec_to_fock(sitevec, format, state_ref):
      r"""Test that _sitevec_to_fock returns the correct state."""
  
      state = qml.qchem.convert._sitevec_to_fock(sitevec, format)
  
      assert state == state_ref
  
imports: import os
  import sys
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane import qchem
  from pennylane.operation import disable_new_opmath, enable_new_opmath
label_desc: Use image node_id 31 for calling a global function with example usage: test_sitevec_to_fock(sitevec, format, state_ref) without return types