code: def _mock_imethodcall(self, methodname, namespace, response_params_rqd=None,
                            **params):  # pylint: disable=unused-argument
          
          method_name = '_fake_' + methodname.lower()
  
          method_name = getattr(self, method_name)
  
          result = method_name(namespace, **params)
  
          # sleep for defined number of seconds
          if self._response_delay:
              time.sleep(self._response_delay)
  
          return result
docs: Mocks the WBEMConnection._imethodcall() method.
  
          This mock calls methods within this class that fake the processing
          in a WBEM server (at the CIM Object level) for the varisous CIM/XML
          methods and return.
  
          Each function is named with the lower case method namd prepended with
          '_fake_'.