code: def test_estimation_cost(norm, error, cost_ref):
      r"""Test that estimation_cost returns the correct values."""
      cost = qml.resource.DoubleFactorization.estimation_cost(
          norm, error
      )
  
      assert cost == cost_ref
  
file_path: pennylane/tests/resource/test_second_quantization.py
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: test_estimation_cost(norm, error, cost_ref) without return types