code: def test_cost_qrom(lz, cost_ref):
      r"""Test that _cost_qrom returns the correct value."""
      cost = qml.resource.FirstQuantization._cost_qrom(lz)
  
      assert cost == cost_ref
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_cost_qrom(lz, cost_ref) without return types