def test_import_from_input_data_with_warning():
    """Tests that importing maskers from deprecated module ``input_data`` \
       still works.
    """
    from nilearn import input_data, maskers

    assert input_data != maskers
    assert maskers.NiftiMasker == input_data.NiftiMasker
    assert maskers.NiftiLabelsMasker == input_data.NiftiLabelsMasker
    assert maskers.NiftiMapsMasker == input_data.NiftiMapsMasker
    assert maskers.NiftiSpheresMasker == input_data.NiftiSpheresMasker
    assert maskers.MultiNiftiMasker == input_data.MultiNiftiMasker
    from nilearn.input_data import NiftiMapsMasker as Masker1
    from nilearn.input_data.nifti_maps_masker import NiftiMapsMasker as Masker2

    assert Masker1 is Masker2
    assert Masker1.__module__ == "nilearn.maskers.nifti_maps_masker"
    assert Masker2.__module__ == "nilearn.maskers.nifti_maps_masker"

    from nilearn.maskers.nifti_masker import filter_and_mask  # noqa: F401
