<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rotate_scatter3d(data, filename=None, elev=30, rotation_speed=30, fps=10, ax=None, figsize=None, dpi=None, ipython_html="jshtml", **kwargs):
 """Create a rotating 3D scatter plot Builds upon `matplotlib.pyplot.scatter` with nice defaults and handles categorical colors / legends better. Parameters data : array-like, `phate.PHATE` or `scanpy.AnnData` Input data. Only the first three dimensions are used. filename : str, optional (default: None) If not None, saves a .gif or .mp4 with the output elev : float, optional (default: 30) Elevation of viewpoint from horizontal, in degrees rotation_speed : float, optional (default: 30) Speed of axis rotation, in degrees per second fps : int, optional (default: 10) Frames per second. Increase this for a smoother animation ax : `matplotlib.Axes` or None, optional (default: None) axis on which to plot. If None, an axis is created figsize : tuple, optional (default: None) Tuple of floats for creation of new `matplotlib` figure. Only used if `ax` is None. dpi : number, optional (default: None) Controls the dots per inch for the movie frames. This combined with the figure's size in inches controls the size of the movie. If None, defaults to rcParams["savefig.dpi"] ipython_html : {'html5', 'jshtml'} which html writer to use if using a Jupyter Notebook **kwargs : keyword arguments See :~func:`phate.plot.scatter3d`. Returns ------- ani : `matplotlib.animation.FuncAnimation` animation object Examples -------- (2000, 100) (2000, 2) """

    warnings.warn("`phate.plot.rotate_scatter3d` is deprecated. "
                  "Use `scprep.plot.rotate_scatter3d` instead.",
                  FutureWarning)
    return scprep.plot.rotate_scatter3d(data,
                                        filename=filename,
                                        elev=elev,
                                        rotation_speed=rotation_speed,
                                        fps=fps,
                                        ax=ax,
                                        figsize=figsize,
                                        dpi=dpi,
                                        ipython_html=ipython_html,
                                        **kwargs)