code: def fake_client(query_to_result={}):
      class FakeCallback:
          def __init__(self, query: str):
              self.query = query
  
          def result(self):
              return query_to_result[self.query]
  
      class FakeClient:
          def submitAsync(self, query: str):
              cb = FakeCallback(query)
              return cb
  
      return FakeClient()
  
imports: from typing import Iterable
  import os, numpy, pandas, pyarrow, pytest, queue
  from common import NoAuthTestCase
  from concurrent.futures import Future
  from mock import patch
  from gremlin_python.driver.resultset import ResultSet
  from gremlin_python.structure.graph import Vertex, Edge, Path
  from graphistry.gremlin import CosmosMixin, GremlinMixin, DROP_QUERY, nodes_to_queries, edges_to_queries
  from graphistry.plotter import PlotterBase
label_desc: Use image node_id 1 for calling a global function with example usage: fake_client(query_to_result) and returns: FakeClient, query_to_result, cb