def get_vertices_used(self, vertices=None):
        """Get the source space's vertices inside the label

        Parameters
        ----------
        vertices : ndarray of int, shape (n_vertices,) | None
            The set of vertices to compare the label to. If None, equals to
            ``np.arange(10242)``. Defaults to None.

        Returns
        -------
        label_verts : ndarray of in, shape (n_label_vertices,)
            The vertices of the label corresponding used by the data.
        """
        if vertices is None:
            vertices = np.arange(10242)

        label_verts = vertices[in1d(vertices, self.vertices)]
        return label_verts
dataset/ETHPy150Open mne-tools/mne-python/mne/label.py/Label.get_vertices_used/original