Fix import format at pandas/tests/extension directory
- [x] partial #23334 
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

PR includes 21 files, but I think it's acceptable and unnecessary to divide it to two separate PRs.
