code: def find_document(self, doc_type, id, index, result):
      for document in self.__documents_dict[index]:
          if document.get("_id") == id:
              if (
                  doc_type == "_all"
                  or document.get("_type") == doc_type
              ):
                  result = document
                  break
      return result
  
imports: from __future__ import annotations
  import fnmatch
  import json
  from elasticsearch import Elasticsearch
  from elasticsearch.exceptions import NotFoundError
  from .utilities import MissingIndexException, get_random_id, query_params
label_desc: Use image node_id 8 for calling the FakeElasticsearch obj's underlying member method code with example usage: obj.find_document(doc_type, id, index, result) and returns: result