code: def test_direct_deferral_wrapping_override():
      """Directly test Dask defering to an upcast type and the ability to still wrap it."""
      a = da.from_array(np.arange(4))
      b = WrappedArray(np.arange(4))
      assert a.__add__(b) is NotImplemented
      # Note: remove dask_graph to be able to wrap b in a dask array
      b.__dask_graph__ = None
      res = a + da.from_array(b)
      assert isinstance(res, da.Array)
      assert_eq(res, 2 * np.arange(4), check_type=False)
  
imports: from __future__ import annotations
  import operator
  import numpy
  import pytest
  import dask.array
  from dask.array import Array
  from dask.array.chunk_types import is_valid_array_chunk, is_valid_chunk_type
  from dask.array.utils import assert_eq
label_desc: Use image node_id 6 for calling a global function with example usage: test_direct_deferral_wrapping_override() without return types