code: def frompyfunc(func, nin, nout):
      if nout > 1:
          raise NotImplementedError(
              "frompyfunc with more than one output"
          )
      return ufunc(da_frompyfunc(func, nin, nout))
  
imports: from __future__ import annotations
  from functools import partial
  from operator import getitem
  import numpy
  from dask import core
  from dask.array.core import Array, apply_infer_dtype, asarray, blockwise, elemwise
  from dask.base import is_dask_collection, normalize_function
  from dask.highlevelgraph import HighLevelGraph
  from dask.utils import derived_from, funcname
label_desc: Use image node_id 2 for calling a global function with example usage: frompyfunc(func, nin, nout) and returns: ufunc