code: def test_issignedinf():
      with np.errstate(invalid="ignore", divide="ignore"):
          arr = (
              np.random.randint(-1, 2, size=(20, 20)).astype(float) / 0
          )
      darr = da.from_array(arr, 3)
  
      assert_eq(np.isneginf(arr), da.isneginf(darr))
      assert_eq(np.isposinf(arr), da.isposinf(darr))
  
imports: from __future__ import annotations
  import pickle
  import warnings
  from functools import partial
  from operator import add
  import pytest
  import dask.array
  from dask.array.ufunc import da_frompyfunc
  from dask.array.utils import assert_eq
  from dask.base import tokenize
label_desc: Use image node_id 10 for calling a global function with example usage: test_issignedinf() without return types