`has_dataset` (which calls `_data_path`) is still called every time you import `sample` (see `datasets/sample/sample.py`, L22). Perhaps that's the problem (I don't particularly like code that runs automatically on import).