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