Version of nilearn looks wrong.
This code raises the following error :
from notip.posthoc_fmri import get_clusters_table_TDP
get_clusters_table_with_TDP(z_map, fmri_input, n_permutations=200, stat_threshold=3.5, methods=['Notip'])
ImportError: cannot import name '_safe_get_data' from 'nilearn._utils.niimg' (/opt/mamba/lib/python3.12/site-packages/nilearn/_utils/niimg.py)