SEgmentation based on colors of pointcloud in python

Hello, I am new to open3d. I have a segmented point cloud and I want to get points based on the colors (clusters of points of different colours so I can detect different objects in the pointcloud). Is there any open3d function that can do that? (I saw color segmentation is available in c++ but not in python).
Something like this in pointcloud…