@staticmethod
def _verify_source_and_target(source, target):
    """
        Checks that the dimensions and number of points match up of the source
        and the target.

        Parameters
        ----------
        source : :map:`PointCloud`
            A PointCloud that the alignment will be based from
        target : :map:`PointCloud`
            A PointCloud that the alignment is targeted towards

        Raises
        ------
        ValueError
            Source and target must have the same dimensionality
        ValueError
            Source and target must have the same number of points
        """
    if source.n_dims != target.n_dims:
        raise ValueError('Source and target must have the same dimensionality')
    elif source.n_points != target.n_points:
        raise ValueError(
            'Source and target must have the same number of points')
