code: def roots(arr):
      """np.roots replacement. XXX: calls into NumPy, then converts back."""
      import numpy as np
  
      arr = cupy.asarray(arr).get()
      return cupy.asarray(np.roots(arr))
  
file_path: cupy/cupyx/scipy/signal/_polyutils.py
imports: import cupy
label_desc: Use image node_id 1 for calling a global function with example usage: roots(arr) and returns: cupy