code: def get_an_entity(url: str, bearer_token: str) -> Any:
      """
      Makes a GET request to the given url
      Gets the entity for the given url and bearer token
  
      url: URL to which the get request is made
      bearer_token: authentication token for the request
  
      Returns
      Dictionary or list of dictionaries containing information/metadata corresponding to the entities
      """
      payload = {}
      headers = {
          "Authorization": f"Bearer {bearer_token}",
          "Content-Type": "application/json",
      }
      response = getresponse(
          request_type="GET",
          url=url,
          headers=headers,
          payload=payload,
          files=[],
      )
      response = response.json()["value"]
      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 2 for calling a global function with example usage: get_an_entity(url, bearer_token) and returns: response