TST: move functions to module level #8023o
Merge branch 'feature_refactor_tests_8023' of github.com:papaloizouc/pandas into feature_refactor_tests_8023