Module Expr Str Import alias Import alias Import alias Import alias identifier Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args defaults body Global identifier Assign NameStore Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Global identifier Global identifier Assign NameStore Call NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Global identifier Global identifier Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Global identifier Global identifier Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Global identifier Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Global identifier Assign AttributeStore NameLoad attr NameLoad Global identifier Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Global identifier If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Num Expr Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Num Expr Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Num Expr Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad NameLoad keyword Num Expr Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad NameLoad keyword Num Expr Call NameLoad NameLoad NameLoad Assert Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Num decorator_list Call NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str Str Expr Call NameLoad SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Num Index Num Index Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Num Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad SubscriptLoad NameLoad Index Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad SubscriptLoad NameLoad Index Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Assign NameStore SubscriptLoad NameLoad Index BinOpMod NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad keyword ListLoad TupleLoad Str NameLoad TupleLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str TupleLoad Num Num Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str ListLoad Num Num TupleLoad Num Num Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore BinOpMod NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad keyword ListLoad TupleLoad Str NameLoad TupleLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Num Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Num Str keyword Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Num Assert Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Num Assert Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Num Assert Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Num keyword NameLoad Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call NameLoad Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Num keyword NameLoad Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Num keyword NameLoad Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore TupleLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Num keyword ListLoad BinOpAdd NameLoad TupleLoad Call NameLoad keyword NameLoad Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num With Call NameLoad SubscriptLoad NameLoad Index Num Str NameStore body Expr Call NameLoad Call AttributeLoad NameLoad attr Str With Call NameLoad SubscriptLoad NameLoad Index Num Str NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Num keyword ListLoad BinOpAdd NameLoad TupleLoad Call NameLoad keyword NameLoad Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num With Call NameLoad SubscriptLoad NameLoad Index Num Str NameStore body Expr Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Num keyword ListLoad BinOpAdd NameLoad TupleLoad Call NameLoad keyword NameLoad Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num With Call NameLoad SubscriptLoad NameLoad Index Num Str NameStore body Expr Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad
N/A N/A 
Test the datasets module
 N/A contextlib N/A os N/A shutil N/A numpy np N/A zipfile N/A tarfile N/A gzip tempfile mkdtemp mkstemp nose with_setup nose.tools assert_true assert_false assert_equal nilearn datasets nilearn._utils.testing mock_request wrap_chunk_read_ FetchFilesMock assert_raises_regex N/A currdir N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A datadir N/A N/A N/A os path join currdir data N/A tmpdir None N/A url_request None N/A file_mock None setup_tmpdata N/A N/A N/A N/A N/A tmpdir N/A tmpdir N/A mkdtemp N/A setup_mock N/A N/A utils_mod dataset_mod N/A N/A datasets utils N/A datasets utils N/A N/A original_url_request N/A mock_url_request N/A mock_url_request N/A mock_request N/A original_url_request N/A N/A utils_mod _urllib request N/A N/A N/A utils_mod _urllib request mock_url_request N/A original_chunk_read N/A mock_chunk_read N/A mock_chunk_read N/A wrap_chunk_read_ N/A utils_mod _chunk_read_ N/A original_chunk_read N/A utils_mod _chunk_read_ N/A N/A utils_mod _chunk_read_ mock_chunk_read N/A original_fetch_files N/A mock_fetch_files N/A mock_fetch_files N/A FetchFilesMock N/A original_fetch_files N/A dataset_mod _fetch_files N/A N/A dataset_mod _fetch_files mock_fetch_files N/A teardown_mock N/A N/A utils_mod dataset_mod N/A N/A datasets utils N/A datasets utils N/A N/A original_url_request N/A N/A N/A utils_mod _urllib request original_url_request N/A original_chunk_read N/A N/A utils_mod chunk_read_ original_chunk_read N/A original_fetch_files N/A N/A dataset_mod _fetch_files original_fetch_files N/A teardown_tmpdata N/A N/A N/A N/A N/A tmpdir N/A N/A tmpdir None N/A N/A N/A N/A shutil rmtree tmpdir N/A test_get_dataset_dir N/A N/A N/A N/A N/A N/A N/A N/A os environ pop NILEARN_DATA None N/A N/A N/A N/A os environ pop NILEARN_SHARED_DATA None N/A expected_base_dir N/A N/A N/A os path expanduser ~/nilearn_data N/A data_dir N/A N/A N/A datasets utils _get_dataset_dir test verbose 0 N/A N/A assert_equal data_dir N/A N/A N/A os path join expected_base_dir test N/A N/A N/A N/A os path exists data_dir N/A N/A N/A shutil rmtree data_dir N/A expected_base_dir N/A N/A N/A os path join tmpdir test_nilearn_data N/A N/A N/A os environ N/A NILEARN_DATA expected_base_dir N/A data_dir N/A N/A N/A datasets utils _get_dataset_dir test verbose 0 N/A N/A assert_equal data_dir N/A N/A N/A os path join expected_base_dir test N/A N/A N/A N/A os path exists data_dir N/A N/A N/A shutil rmtree data_dir N/A expected_base_dir N/A N/A N/A os path join tmpdir nilearn_shared_data N/A N/A N/A os environ N/A NILEARN_SHARED_DATA expected_base_dir N/A data_dir N/A N/A N/A datasets utils _get_dataset_dir test verbose 0 N/A N/A assert_equal data_dir N/A N/A N/A os path join expected_base_dir test N/A N/A N/A N/A os path exists data_dir N/A N/A N/A shutil rmtree data_dir N/A expected_base_dir N/A N/A N/A os path join tmpdir env_data N/A expected_dataset_dir N/A N/A N/A os path join expected_base_dir test N/A data_dir N/A N/A N/A datasets utils _get_dataset_dir test default_paths N/A expected_dataset_dir verbose 0 N/A N/A assert_equal data_dir N/A N/A N/A os path join expected_base_dir test N/A N/A N/A N/A os path exists data_dir N/A N/A N/A shutil rmtree data_dir N/A no_write N/A N/A N/A os path join tmpdir no_write N/A N/A N/A os makedirs no_write N/A N/A N/A os chmod no_write 256 N/A expected_base_dir N/A N/A N/A os path join tmpdir nilearn_shared_data N/A N/A N/A os environ N/A NILEARN_SHARED_DATA expected_base_dir N/A data_dir N/A N/A N/A datasets utils _get_dataset_dir test default_paths N/A no_write verbose 0 N/A N/A assert_equal data_dir no_write N/A N/A N/A N/A os path exists data_dir N/A N/A N/A os chmod no_write 384 N/A N/A N/A shutil rmtree data_dir N/A test_file N/A N/A N/A os path join tmpdir some_file N/A N/A open test_file w out N/A N/A N/A N/A out write abcfeg N/A N/A assert_raises_regex OSError Nilearn tried to store the dataset in the following directories, but N/A N/A datasets utils _get_dataset_dir test test_file verbose 0 N/A N/A with_setup setup_tmpdata teardown_tmpdata test_md5_sum_file N/A N/A N/A N/A N/A N/A out f N/A mkstemp N/A N/A N/A os write out abcfeg N/A N/A N/A os close out N/A N/A assert_equal N/A N/A N/A datasets utils _md5_sum_file f 18f32295c556b2a1a3a8e68fe1ad40f7 N/A N/A N/A os remove f N/A test_read_md5_sum_file N/A N/A N/A N/A N/A N/A out f N/A mkstemp N/A N/A N/A os write out 20861c8c3fe177da19a7e9539a5dbac  /tmp/test
70886dcabe7bf5c5a1c24ca24e4cbd94  test/some_image.nii N/A N/A N/A os close out N/A h N/A N/A N/A datasets utils _read_md5_sum_file f N/A N/A assert_true N/A /tmp/test h N/A N/A assert_false N/A /etc/test h N/A N/A assert_equal N/A h N/A test/some_image.nii 70886dcabe7bf5c5a1c24ca24e4cbd94 N/A N/A assert_equal N/A h N/A /tmp/test 20861c8c3fe177da19a7e9539a5dbac N/A N/A N/A os remove f N/A test_tree N/A N/A N/A N/A N/A parent N/A mkdtemp N/A N/A N/A N/A open N/A N/A N/A os path join parent file1 w close N/A N/A N/A N/A open N/A N/A N/A os path join parent file2 w close N/A dir1 N/A N/A N/A os path join parent dir1 N/A dir11 N/A N/A N/A os path join dir1 dir11 N/A dir12 N/A N/A N/A os path join dir1 dir12 N/A dir2 N/A N/A N/A os path join parent dir2 N/A N/A N/A os mkdir dir1 N/A N/A N/A os mkdir dir11 N/A N/A N/A os mkdir dir12 N/A N/A N/A os mkdir dir2 N/A N/A N/A N/A open N/A N/A N/A os path join dir1 file11 w close N/A N/A N/A N/A open N/A N/A N/A os path join dir1 file12 w close N/A N/A N/A N/A open N/A N/A N/A os path join dir11 file111 w close N/A N/A N/A N/A open N/A N/A N/A os path join dir2 file21 w close N/A tree_ N/A N/A N/A datasets utils _tree parent N/A N/A assert_equal N/A N/A N/A N/A N/A tree_ N/A 0 N/A 1 N/A 0 N/A 1 N/A 0 N/A N/A N/A os path join dir11 file111 N/A N/A assert_equal N/A len N/A N/A N/A N/A tree_ N/A 0 N/A 1 N/A 1 N/A 1 0 N/A N/A assert_equal N/A N/A N/A tree_ N/A 0 N/A 1 N/A 2 N/A N/A N/A os path join dir1 file11 N/A N/A assert_equal N/A N/A N/A tree_ N/A 0 N/A 1 N/A 3 N/A N/A N/A os path join dir1 file12 N/A N/A assert_equal N/A N/A N/A tree_ N/A 1 N/A 1 N/A 0 N/A N/A N/A os path join dir2 file21 N/A N/A assert_equal N/A tree_ N/A 2 N/A N/A N/A os path join parent file1 N/A N/A assert_equal N/A tree_ N/A 3 N/A N/A N/A os path join parent file2 N/A N/A N/A shutil rmtree parent N/A test_movetree N/A N/A N/A N/A N/A parent N/A mkdtemp N/A dir1 N/A N/A N/A os path join parent dir1 N/A dir11 N/A N/A N/A os path join dir1 dir11 N/A dir12 N/A N/A N/A os path join dir1 dir12 N/A dir2 N/A N/A N/A os path join parent dir2 N/A N/A N/A os mkdir dir1 N/A N/A N/A os mkdir dir11 N/A N/A N/A os mkdir dir12 N/A N/A N/A os mkdir dir2 N/A N/A N/A os mkdir N/A N/A N/A os path join dir2 dir12 N/A N/A N/A N/A open N/A N/A N/A os path join dir1 file11 w close N/A N/A N/A N/A open N/A N/A N/A os path join dir1 file12 w close N/A N/A N/A N/A open N/A N/A N/A os path join dir11 file111 w close N/A N/A N/A N/A open N/A N/A N/A os path join dir12 file121 w close N/A N/A N/A N/A open N/A N/A N/A os path join dir2 file21 w close N/A N/A N/A N/A datasets utils movetree dir1 dir2 N/A N/A assert_false N/A N/A N/A os path exists dir11 N/A N/A assert_false N/A N/A N/A os path exists dir12 N/A N/A assert_false N/A N/A N/A os path exists N/A N/A N/A os path join dir1 file11 N/A N/A assert_false N/A N/A N/A os path exists N/A N/A N/A os path join dir1 file12 N/A N/A assert_false N/A N/A N/A os path exists N/A N/A N/A os path join dir11 file111 N/A N/A assert_false N/A N/A N/A os path exists N/A N/A N/A os path join dir12 file121 N/A dir11 N/A N/A N/A os path join dir2 dir11 N/A dir12 N/A N/A N/A os path join dir2 dir12 N/A N/A assert_true N/A N/A N/A os path exists dir11 N/A N/A assert_true N/A N/A N/A os path exists dir12 N/A N/A assert_true N/A N/A N/A os path exists N/A N/A N/A os path join dir2 file11 N/A N/A assert_true N/A N/A N/A os path exists N/A N/A N/A os path join dir2 file12 N/A N/A assert_true N/A N/A N/A os path exists N/A N/A N/A os path join dir11 file111 N/A N/A assert_true N/A N/A N/A os path exists N/A N/A N/A os path join dir12 file121 N/A test_filter_columns N/A N/A N/A N/A N/A value1 N/A N/A np arange 500 N/A strings N/A N/A np asarray N/A a b c N/A value2 N/A strings N/A N/A value1 3 N/A values N/A N/A np asarray N/A list N/A zip value1 value2 dtype N/A N/A INT int N/A STR S1 N/A f N/A N/A N/A datasets utils _filter_columns values N/A INT N/A 23 46 N/A N/A assert_equal N/A N/A np sum f 24 N/A f N/A N/A N/A datasets utils _filter_columns values N/A INT N/A 0 9 N/A 12 24 N/A N/A assert_equal N/A N/A np sum f 15 N/A value1 N/A value1 2 N/A values N/A N/A np asarray N/A list N/A zip value1 value2 dtype N/A N/A INT int N/A STR S1 N/A f N/A N/A N/A datasets utils _filter_columns values N/A N/A N/A assert_equal N/A N/A np sum f 500 N/A f N/A N/A N/A datasets utils _filter_columns values N/A STR b N/A N/A assert_equal N/A N/A np sum f 167 N/A f N/A N/A N/A datasets utils _filter_columns values N/A INT STR 1 b N/A N/A assert_equal N/A N/A np sum f 84 N/A f N/A N/A N/A datasets utils _filter_columns values N/A INT STR 1 b combination or N/A N/A assert_equal N/A N/A np sum f 333 N/A test_uncompress N/A N/A N/A N/A N/A N/A fd temp N/A mkstemp N/A N/A N/A os close fd N/A dtemp N/A mkdtemp N/A ztemp N/A N/A N/A os path join dtemp test.zip N/A N/A N/A contextlib closing N/A N/A zipfile ZipFile ztemp w testzip N/A N/A N/A N/A testzip write temp N/A N/A N/A N/A datasets utils _uncompress_file ztemp verbose 0 N/A N/A N/A N/A os path exists N/A N/A N/A os path join dtemp temp N/A N/A N/A shutil rmtree dtemp N/A dtemp N/A mkdtemp N/A ztemp N/A N/A N/A os path join dtemp test.tar N/A N/A N/A contextlib closing N/A N/A tarfile open ztemp w tar N/A N/A N/A N/A tar add temp N/A N/A N/A N/A datasets utils _uncompress_file ztemp verbose 0 N/A N/A N/A N/A os path exists N/A N/A N/A os path join dtemp temp N/A N/A N/A shutil rmtree dtemp N/A dtemp N/A mkdtemp N/A ztemp N/A N/A N/A os path join dtemp test.gz N/A f N/A N/A gzip open ztemp wb N/A N/A N/A f close N/A N/A N/A N/A datasets utils _uncompress_file ztemp verbose 0 N/A N/A N/A N/A os path exists N/A N/A N/A os path join dtemp temp N/A N/A N/A shutil rmtree dtemp N/A N/A N/A os remove temp N/A test_fetch_file_overwrite N/A N/A N/A N/A N/A fil N/A N/A N/A datasets utils _fetch_file url http://foo/ data_dir tmpdir verbose 0 overwrite True N/A N/A assert_equal N/A len N/A mock_url_request urls 1 N/A N/A assert_true N/A N/A N/A os path exists fil N/A N/A open fil r fp N/A N/A N/A assert_equal N/A N/A fp read N/A N/A open fil w fp N/A N/A N/A N/A fp write some content N/A fil N/A N/A N/A datasets utils _fetch_file url http://foo/ data_dir tmpdir verbose 0 overwrite False N/A N/A assert_equal N/A len N/A mock_url_request urls 1 N/A N/A assert_true N/A N/A N/A os path exists fil N/A N/A open fil r fp N/A N/A N/A assert_equal N/A N/A fp read some content N/A fil N/A N/A N/A datasets utils _fetch_file url http://foo/ data_dir tmpdir verbose 0 overwrite True N/A N/A assert_equal N/A len N/A mock_url_request urls 1 N/A N/A assert_true N/A N/A N/A os path exists fil N/A N/A open fil r fp N/A N/A N/A assert_equal N/A N/A fp read N/A N/A with_setup setup_mock teardown_mock N/A with_setup setup_tmpdata teardown_tmpdata test_fetch_files_overwrite N/A N/A N/A N/A N/A files N/A 1.txt http://foo/1.txt N/A fil N/A N/A N/A datasets utils _fetch_files data_dir tmpdir verbose 0 files N/A N/A files N/A N/A dict overwrite True N/A N/A assert_equal N/A len N/A mock_url_request urls 1 N/A N/A assert_true N/A N/A N/A os path exists N/A fil N/A 0 N/A N/A open N/A fil N/A 0 r fp N/A N/A N/A assert_equal N/A N/A fp read N/A N/A open N/A fil N/A 0 w fp N/A N/A N/A N/A fp write some content N/A fil N/A N/A N/A datasets utils _fetch_files data_dir tmpdir verbose 0 files N/A N/A files N/A N/A dict overwrite False N/A N/A assert_equal N/A len N/A mock_url_request urls 1 N/A N/A assert_true N/A N/A N/A os path exists N/A fil N/A 0 N/A N/A open N/A fil N/A 0 r fp N/A N/A N/A assert_equal N/A N/A fp read some content N/A fil N/A N/A N/A datasets utils _fetch_files data_dir tmpdir verbose 0 files N/A N/A files N/A N/A dict overwrite True N/A N/A assert_equal N/A len N/A mock_url_request urls 1 N/A N/A assert_true N/A N/A N/A os path exists N/A fil N/A 0 N/A N/A open N/A fil N/A 0 r fp N/A N/A N/A assert_equal N/A N/A fp read N/A N/A with_setup setup_mock teardown_mock N/A with_setup setup_tmpdata teardown_tmpdata