code: def test_df_costs(one, two, g_cost, q_cost):
      r"""Test that DoubleFactorization class returns correct costs."""
      est = qml.resource.DoubleFactorization(
          one, two, chemist_notation=True
      )
  
      assert np.allclose(est.gates, g_cost)
      assert np.allclose(est.qubits, q_cost)
  
file_path: pennylane/tests/resource/test_second_quantization.py
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: test_df_costs(one, two, g_cost, q_cost) without return types