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