def ones(shape: Union[int, Iterable[int]], dtype: Optional[object] = None, order: Optional[str] = 'C') -> ndarray **Test docstring** Return a new array of given shape and type, filled with ones.