code: def fromfunction(
      function, shape, *, dtype="float64", like=None, **kwargs
  ):
      args = ivy.indices(shape, dtype=dtype)
      return function(*args, **kwargs)
  
file_path: ivy/ivy/functional/frontends/numpy/creation_routines/from_shape_or_value.py
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import outputs_to_frontend_arrays, handle_numpy_dtype
label_desc: Use image node_id 4 for calling a global function with example usage: fromfunction(function, shape) and returns: function