code: def _clean_kwargs(self, kwargs):
      if "auth" in kwargs:
          del kwargs["auth"]
      if "timeout" in kwargs:
          del kwargs["timeout"]
      if "cookies" in kwargs:
          del kwargs["cookies"]
      if "params" in kwargs:
          del kwargs["params"]
      if "stream" in kwargs:
          del kwargs["stream"]
      if "verify" in kwargs:
          del kwargs["verify"]
      if "allow_redirects" in kwargs:
          del kwargs["allow_redirects"]
      if "files" in kwargs:
          del kwargs["files"]
      if "cert" in kwargs:
          del kwargs["cert"]
      if "hosts" in kwargs:
          del kwargs["hosts"]
      if "location_mode" in kwargs:
          del kwargs["location_mode"]
      if "headers" in kwargs:
          # We convert our headers to a dict to avoid requests mocking madness
          kwargs["headers"] = dict(kwargs["headers"] or {})
      return kwargs
  
imports: import json
  import threading
  import urllib
  from unittest.mock import MagicMock
  import requests
label_desc: Use image node_id 16 for calling the RequestsMock obj's underlying member method code with example usage: obj._clean_kwargs(kwargs) and returns: kwargs