def function_example(point_cloud,bool_flag=False):   
    """ Returns the given point cloud, with the potential to raise errors if the input is too large.

        Parameters
        ----------
        point_cloud : (n,3) numpy array
            Array containing the x-y-z coords of a 3d point cloud.
        bool_flag : boolean, optional
            A boolean flag to toggle error checking.

        Returns
        -------
        out : (n,3) numpy array
            Array containing the x-y-z coords of a 3d point cloud.
        
        Raises
        ------
        ValueError
            If the length of our point cloud exceeds 10,000.
        """

    if bool and len(point_cloud) > 10000:
        raise ValueError('length of point_cloud cannot exceed 10,000 points')

    out = point_cloud
    return out