code: def test_monkey_patching():
      _tokens = daal4py.sklearn.sklearn_patch_names()
      _values = daal4py.sklearn.sklearn_patch_map().values()
      _classes = list()
      for v in _values:
          _classes.append(v[0][0])
  
      assert len(_tokens) == len(_classes)
      assert (
          isinstance(_tokens, list) and len(_tokens) > 0
      ), "Internal Error: list of patched names has unexcepable format."
  
      daal4py.sklearn.patch_sklearn()
  
      for i, _ in enumerate(_tokens):
          t = _tokens[i]
          p = _classes[i][0]
          n = _classes[i][1]
  
          class_module = getattr(p, n).__module__
          assert class_module.startswith(
              "daal4py"
          ), "Patching has completed with error."
  
      for i, _ in enumerate(_tokens):
          t = _tokens[i]
          p = _classes[i][0]
          n = _classes[i][1]
  
          daal4py.sklearn.unpatch_sklearn(t)
          class_module = getattr(p, n).__module__
          assert class_module.startswith(
              "sklearn"
          ), "Unpatching has completed with error."
  
      daal4py.sklearn.unpatch_sklearn()
  
      for i, _ in enumerate(_tokens):
          t = _tokens[i]
          p = _classes[i][0]
          n = _classes[i][1]
  
          class_module = getattr(p, n).__module__
          assert class_module.startswith(
              "sklearn"
          ), "Unpatching has completed with error."
  
      for i, _ in enumerate(_tokens):
          t = _tokens[i]
          p = _classes[i][0]
          n = _classes[i][1]
  
          daal4py.sklearn.patch_sklearn(t)
  
          class_module = getattr(p, n).__module__
          assert class_module.startswith(
              "daal4py"
          ), "Patching has completed with error."
  
      daal4py.sklearn.unpatch_sklearn()
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_monkey_patching() without return types