TST: Move _get_cython_table_params into pandas/_testing.py
Part of #30914
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`


LGTM thanks @SaturnFromTitan 