code: def _make_ocs_request(self, method, service, action, **kwargs):
          
          slash = ''
          if service:
              slash = '/'
          path = self.OCS_BASEPATH + service + slash + action
  
          attributes = kwargs.copy()
  
          if 'headers' not in attributes:
              attributes['headers'] = {}
  
          attributes['headers']['OCS-APIREQUEST'] = 'true'
  
          if self._debug:
              print('OCS request: %s %s %s' % (method, self.url + path,
                                               attributes))
  
          res = self._session.request(method, self.url + path, **attributes)
          return res
docs: Makes a OCS API request
  
          :param method: HTTP method
          :param service: service name
          :param action: action path
          :param \*\*kwargs: optional arguments that ``requests.Request.request`` accepts
          :returns :class:`requests.Response` instance