def delimiter_func(string):
    """The delimiter function used in the image importer
    Used to just get the number of the image from the name of the image/mda file

    Parameters
    ==========
    string (str):
        the string the user wants to place the delimiter function on

    Returns
    =======
    a cropped string based on the delimiter function
    """
    return string.split('_')[-1][0:-4]
