Pull out the implementation logic.
Add mock as a testing dependency.
Test CPython implementation.
Test PyPy implementation string.
Test unknown Python implementations.