class_docstr: Client to interact with the Frappe API.
  
  Attributes:
      domain (str): Path to Frappe domain to use (e.g. https://mindsdbfrappe.com).
      access_token (str): Frappe authorization token to use for all API requests.
docstr: Gets a document matching the given doctype from Frappe.
  
  See https://frappeframework.com/docs/v14/user/en/api/rest#listing-documents
  Args:
      doctype (str): The document type to retrieve.
      name (str): Name of the document.
docstr_tok: ["Gets","a","document","matching","the","given","doctype","from","Frappe",".","See","https",":","\/\/frappeframework.com\/docs\/v14\/user\/en\/api\/rest","#","listing-documents","Args",":","doctype","(","str",")",":","The","document","type","to","retrieve",".","name","(","str",")",":","Name","of","the","document","."]
code: def get_document(self, doctype: str, name: str) -> Dict:
      """Gets a document matching the given doctype from Frappe.
  
      See https://frappeframework.com/docs/v14/user/en/api/rest#listing-documents
      Args:
          doctype (str): The document type to retrieve.
          name (str): Name of the document.
      """
      document_response = requests.get(
          f"{self.base_url}/resource/{doctype}/{name}",
          headers=self.headers,
      )
      if not document_response.ok:
          document_response.raise_for_status()
      return document_response.json()["data"]
  
file_path: mindsdb/mindsdb/integrations/handlers/frappe_handler/frappe_client.py
imports: import json
  import requests
  from typing import Dict, List
label_desc: Use image node_id 2 for calling the FrappeClient obj's underlying member method code with example usage: obj.get_document(doctype, name) and returns: document_response