def fromfunction_kw(function, dimensions, **kwargs):
warnings.warn("<STR_LIT>", DeprecationWarning)<EOL>return np.fromfunction(function, dimensions, **kwargs)<EOL>
Drop-in replacement for :func:`numpy.fromfunction`.

Allows passing keyword arguments to the desired function.

Call it as (keywords are optional)::

  fromfunction_kw(MyFunction, dimensions, keywords)

The function ``MyFunction`` is responsible for handling the
dictionary of keywords it will receive.