Could you reformat this docstring so that there is proper `Parameters` and `Returns` sections? Right now I'm not sure if `dtype` is a _parameter_ or a _return value_.