def METHOD_NAME(path, rtss_path, mask_folder_path):
    """
    Generate an nrrd file for each region of interest using Plastimatch.
    :param path:                Path to patient directory (str)
    :param rtss_path:           Path to RT-Struct file (str)
    :param mask_folder_path:    Folder to which the segmentation masks
                                will be saved(str)
    """
    path = '"' + path + '"'
    mask_folder_path = '"' + mask_folder_path + '"'
    rtss_path = '"' + rtss_path + '"'
    # Command for generating an nrrd file for each region of interest
    cmd_for_segmask = 'plastimatch convert --input ' + rtss_path + \
        ' --output-prefix ' + mask_folder_path + \
        ' --prefix-format nrrd --referenced-ct ' + path + ' 1>' + \
        path + '/NUL'
    cmd_del_nul = 'rm ' + path[:-1] + '/NUL' + '"'
    os.system(cmd_for_segmask)
    if os.path.exists(path[1:-1] + '/NUL'):
        if platform.system() != "Windows":
            os.system(cmd_del_nul)
        else:
            cmd_del_nul = 'del ' + path[:-1] + '/NUL' + '"'
            os.system(cmd_del_nul)