Python 3.10 added the `getprofile` and `gettrace` functions to the `threading` module: https://github.com/python/cpython/issues/8641
Python 3.10 added the
getprofileandgettracefunctions to thethreadingmodule: python/cpython#8641