code: def test_buffer_donation_function_except_first():
      @eqx.filter_jit(donate="warn-except-first")
      def f(x, y):
          return x + y
  
      x = jnp.array(0.0)
      y = jnp.array(1.0)
      old_p = y.unsafe_buffer_pointer()
      new_x = f(x, y)
      assert tree_allclose(new_x, jnp.array(1.0))
      assert not x.is_deleted()
      assert y.is_deleted()
      assert new_x.unsafe_buffer_pointer() == old_p
  
imports: import warnings
  from typing import Union
  import equinox
  import jax
  import jax.numpy
  import jax.random
  import jax.tree_util
  import pytest
  from .helpers import tree_allclose
label_desc: Use image node_id 11 for calling a global function with example usage: test_buffer_donation_function_except_first() and returns: unknown