code: def getresponse(
      url: str,
      payload: Dict[Text, Any],
      files: List[Any],
      headers: Dict[Text, Any],
      request_type: str,
  ) -> Response:
      """
      Makes a standard HTTP request based on the params provided and returns the response.
      May raise an error if the response code does not indicate success
  
      url: url string provided to which the request would be made
      payload: the payload which supply additional info regarding the request
      files: the files that are needed to be passed in the request
      headers: additional information regarding the request
      may also indicate the type of content passed in the payload
      request_type: the request performs different actions based on the request type
                    DELETE/POST/PATCH/GET
  
      Returns
      response: may return based on the response code
      """
      response = requests.request(
          request_type, url, headers=headers, data=payload, files=files
      )
      status_code = response.status_code
  
      if 400 <= status_code <= 499:
          raise Exception("Client error: " + response.text)
  
      if 500 <= status_code <= 599:
          raise Exception("Server error: " + response.text)
      return response
  
file_path: mindsdb/mindsdb/integrations/handlers/sharepoint_handler/utils.py
imports: import json
  from typing import Dict, List, Text, Any
  import requests
  from requests import Response
label_desc: Use image node_id 6 for calling a global function with example usage: getresponse(url, payload, files, headers, request_type) and returns: response