code: def update_an_entity(
      url: str, values_to_update: Dict[Text, Any], bearer_token: str
  ) -> None:
      """
      Makes a PATCH request to given url with the given values_to_update and bearer_token
      updates the entity with the provided values
  
      url: url provided by the user
      values_to_update: values that would be used to update the entity, would be passed in the payload
      Mostly would be a dictionary mapping fields to values
      bearer_token: authentication token passed in the header to make the request
  
      Returns
      None
      """
      payload = values_to_update
      payload = json.dumps(payload, indent=2)
      headers = {
          "Authorization": f"Bearer {bearer_token}",
          "Content-Type": "application/json",
      }
      getresponse(
          request_type="PATCH",
          url=url,
          headers=headers,
          payload=payload,
          files=[],
      )
  
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 3 for calling a global function with example usage: update_an_entity(url, values_to_update, bearer_token) without return types