code: def test_operator_with_constant_params():
      # Tests that an operator can be defined with constant parameters.
  
      @operator(init_params=constants({"a": 1, "b": 2.0}))
      def f(x: Field, *, params):
          return params["a"] + params["b"]
  
      z = f(X)
      assert z == 3.0
      default_params = f.default_params(X)
      assert default_params == {"a": 1, "b": 2.0}
  
imports: import jax
  from jax import grad, jit, make_jaxpr
  from jax import numpy
  from plum.function import NotFoundLookupError
  from pytest import mark, raises
  from jaxdf import *
  from jaxdf.operators.dummy import dummy, yummy
  from jaxdf.signatures import SignatureError
label_desc: Use image node_id 9 for calling a global function with example usage: test_operator_with_constant_params() and returns: unknown