I\'m using pytest to do testing on splitting data into train, val, test set for machine learning problem. I create temporary files using tmpdir_factory
pytest
tmpdir_factory