code: def _mock_methodcall(self, methodname, localobject, Params=None, **params):
          # pylint: disable=invalid-name
          
          result = self._fake_invokemethod(methodname, localobject, Params,
                                           **params)
  
          # Sleep for defined number of seconds
          if self._response_delay:
              time.sleep(self._response_delay)
  
          return result
docs: Mocks the WBEMConnection._methodcall() method. This calls the
          server execution function of extrinsic methods (InvokeMethod).