code: def exists(self, index, doc_type, id, params=None):
      result = False
      if index in self.__documents_dict:
          for document in self.__documents_dict[index]:
              if (
                  document.get("_id") == id
                  and document.get("_type") == doc_type
              ):
                  result = True
                  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 6 for calling the FakeElasticsearch obj's underlying member method code with example usage: obj.exists(index, doc_type, id, params) and returns: result