def binarise(image, threshold=<NUM_LIT:0>):
img = check_img(image)<EOL>return img.get_data() > threshold<EOL>
Binarise image with the given threshold

    Parameters
    ----------
    image: img-like object or boyle.nifti.NeuroImage or str
        Can either be:
        - a file path to a Nifti image
        - any object with get_data() and get_affine() methods, e.g., nibabel.Nifti1Image.
        If niimg is a string, consider it as a path to Nifti image and
        call nibabel.load on it. If it is an object, check if get_data()
        and get_affine() methods are present, raise TypeError otherwise.

    threshold: float

    Returns
    -------
    binarised_img: numpy.ndarray
        Mask volume