code: def test_frame_ufunc_out(ufunc):
      npfunc = getattr(np, ufunc)
      dafunc = getattr(da, ufunc)
  
      input_matrix = np.random.randint(1, 100, size=(20, 2))
  
      df = pd.DataFrame(input_matrix, columns=["A", "B"])
      ddf = dd.from_pandas(df, 3)
      df_out = pd.DataFrame(
          np.random.randint(1, 100, size=(20, 2)), columns=["Y", "Z"]
      )
      ddf_out_np = dd.from_pandas(df_out, 3)
      ddf_out_da = dd.from_pandas(df_out, 3)
  
      with warnings.catch_warnings():
          warnings.simplefilter("ignore", RuntimeWarning)
          npfunc(ddf, out=ddf_out_np)
          dafunc(ddf, out=ddf_out_da)
          assert_eq(ddf_out_np, ddf_out_da)
  
      with warnings.catch_warnings():
          warnings.simplefilter("ignore", RuntimeWarning)
          expected = pd.DataFrame(
              npfunc(input_matrix), columns=["A", "B"]
          )
          assert_eq(ddf_out_np, expected)
  
file_path: dask/dask/dataframe/tests/test_ufunc.py
imports: from __future__ import annotations
  import warnings
  import pytest
  import numpy
  import dask.array
  import dask.dataframe
  from dask.dataframe.utils import assert_eq
label_desc: Use image node_id 6 for calling a global function with example usage: test_frame_ufunc_out(ufunc) without return types