code: def test_use_params_in_function():
      # Tests that the user can use the parameters of an operator
      # in a function.
      op_params = operators.dummy.default_params(X)
  
      def f(x, op_params):
          return operators.dummy(x, params=op_params)
  
      z = f(X, op_params)
      assert z.params == 3.0
  
      z = jit(f)(X, op_params)
      assert z.params == 3.0
  
      op_params = operators.dummy.default_params(X)
      z = jit(f)(A, op_params)
      _ = z
  
      def f(x, coord, op_params):
          b = operators.dummy(x, params=op_params)
          return b(coord)
  
      z = jit(f)(A, 1.0, op_params)
      _ = make_jaxpr(f)(A, 1.0, op_params)
      _ = z
  
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 11 for calling a global function with example usage: test_use_params_in_function() and returns: operators, b