code: def patch_testing_functions():
      tm.assert_produces_warning = null_assert_warnings
      pytest.raises = replace_kwargs({"match": None})(pytest.raises)
  
imports: import contextlib
  import os
  import sys
  from functools import wraps
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: patch_testing_functions() without return types