code: def test_gate_cost_error(n, eta, omega, error, br, charge):
      r"""Test that gate_cost raises an error with incorrect inputs."""
      with pytest.raises(ValueError, match="must be"):
          qml.resource.FirstQuantization.gate_cost(
              n, eta, omega, error, br, charge
          )
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: test_gate_cost_error(n, eta, omega, error, br, charge) without return types