code: def _fetch_data(
      self,
      endpoint: str,
      params: Optional[Dict] = None,
      pagination: bool = True,
  ):
      api_url = self._get_api_url(endpoint)
      params = self._get_request_params(params, pagination)
      while api_url:
          raw_response = self._make_request(api_url, params)
          value = self._get_response_value_unsafe(raw_response)
          params = None
          api_url = raw_response.get("@odata.nextLink", "")
          yield value
  
file_path: mindsdb/mindsdb/integrations/handlers/utilities/api_utilities/microsoft/ms_graph_api_utilities.py
imports: import time
  import requests
  from typing import Optional, Dict, Union, List
  from mindsdb.utilities import log
label_desc: Use image node_id 6 for calling the MSGraphAPIBaseClient obj's underlying member method code with example usage: obj._fetch_data(endpoint, params, pagination) without return types