docs: def reset_threads(old_function):
      """Resets original threading._get_ident() function."""
      with _waitforthreads_lock:
          if hasattr(threading, 'get_ident'):
              threading.get_ident = old_function
          else:
              threading._get_ident = old_function