code: def test_binary_function_type_precedence(
      func, arr_upcast, arr_downcast
  ):
      """Test proper dispatch on binary NumPy functions"""
      assert (
          type(func(arr_upcast, arr_downcast))
          == type(func(arr_downcast, arr_upcast))
          == type(arr_upcast)
      )
  
file_path: dask/dask/array/tests/test_array_function.py
imports: from __future__ import annotations
  import numpy
  import pytest
  import dask.array
  from dask.array.tests.test_dispatch import EncapsulateNDArray, WrappedArray
  from dask.array.utils import assert_eq
label_desc: Use image node_id 10 for calling a global function with example usage: test_binary_function_type_precedence(func, arr_upcast, arr_downcast) without return types