code: def test_qubit_cost_error(
      n, norm, error, rank_r, rank_m, rank_max, br, alpha, beta
  ):
      r"""Test that qubit_cost raises an error with incorrect inputs."""
      with pytest.raises(ValueError, match="must be"):
          qml.resource.DoubleFactorization.qubit_cost(
              n, norm, error, rank_r, rank_m, rank_max, br, alpha, beta
          )
  
file_path: pennylane/tests/resource/test_second_quantization.py
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 14 for calling a global function with example usage: test_qubit_cost_error(n, norm, error, rank_r, rank_m, rank_max, br, alpha, beta) without return types