def disable_tracing_hook():

source code

Remove the tracing import hook from sys.meta_path.This function removes any TraceFinder instances from sys.meta_path, effectively disabling the tracing functionality for subsequent module imports.