numpy.org
numpy.i: a SWIG interface file for NumPy — NumPy v2.6.dev0 Manual
The Python user does not pass these arrays in, they simply get returned. For the case where a dimension is specified, the python user must provide that dimension as an argument.