code: def test_check_dce(capfd):
      @jax.jit
      def f(x):
          a, _, _ = eqx.debug.store_dce((x**2, x + 1, "foobar"))
          return a
  
      f(1)
      capfd.readouterr()
      eqx.debug.inspect_dce()
      text, _ = capfd.readouterr()
      assert "(i32[], <DCE'd>, 'foobar')" in text
  
file_path: equinox/tests/test_debug.py
imports: import equinox
  import jax
  import jax.numpy
  import jax.tree_util
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_check_dce(capfd) and returns: a