I tried
from sklearn.cluster import OPTICS
but got an import error.
I took a look at the scikit documentation and I'm sure I got the module right.
https://scikit-learn.org/stable/modules/generated/sklearn.cluster.OPTICS.html#sklearn.cluster.OPTICS