How can I separate point cloud using label?

I’m trying to separate point cloud using ClusterDBSCAN.
return value of the function is vector. I think it includes cluster number for each point.
I want to separate the point cloud using the labels.
Is there useful function in open3d? or any other useful method?
Thank you.