code: def test_closure_convert_basic():
      @jax.grad
      def f(x, y):
          z = x + y
          g = lambda a: z + a  # closes over z
          g2 = eqx.filter_closure_convert(g, 1)
          assert [id(b) for b in g2.consts] == [id(z)]
          return z
  
      f(1.0, 1.0)
  
imports: import warnings
  from typing import Union
  import equinox
  import jax
  import jax.numpy
  import jax.random
  import jax.tree_util
  import numpy
  import pytest
  from .helpers import tree_allclose
label_desc: Use image node_id 9 for calling a global function with example usage: test_closure_convert_basic() and returns: z