code: def test_estimation_cost_error(norm, error):
      r"""Test that estimation_cost raises an error with incorrect inputs."""
      with pytest.raises(ValueError, match="must be greater than zero"):
          qml.resource.DoubleFactorization.estimation_cost(norm, error)
  
file_path: pennylane/tests/resource/test_second_quantization.py
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: test_estimation_cost_error(norm, error) without return types