code: def test_unitary_cost(n, eta, omega, error, br, charge, cost_ref):
      r"""Test that unitary_cost returns the correct value."""
      cost = qml.resource.FirstQuantization.unitary_cost(
          n, eta, omega, error, br, charge
      )
  
      assert cost == cost_ref
  
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_unitary_cost(n, eta, omega, error, br, charge, cost_ref) without return types