code: def test_cost_qrom_error(lz):
      r"""Test that _cost_qrom raises an error with incorrect input."""
      with pytest.raises(
          ValueError,
          match="sum of the atomic numbers must be a positive integer",
      ):
          qml.resource.FirstQuantization._cost_qrom(lz)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: test_cost_qrom_error(lz) without return types