code: def get_context(
      request: t.Optional[strq.Request] = None,
      response: t.Optional[strp.Response] = None,
      use_global_db_client: bool = False,
  ):
      db_client = get_async_db_client(use_global=use_global_db_client)
      db = db_client[fo.config.database_name]
      loaders = {}
      for cls, config in dataloaders.items():
          loaders[cls] = get_dataloader(cls, config, db)
  
      return Context(
          db=db, dataloaders=loaders, request=request, response=response
      )
  
file_path: fiftyone/fiftyone/server/context.py
imports: import typing
  import starlette.requests
  import starlette.responses
  import strawberry.asgi
  import fiftyone
  from fiftyone.core.odm import get_async_db_client
  from fiftyone.server.data import Context
  from fiftyone.server.dataloader import dataloaders, get_dataloader
label_desc: Use image node_id 1 for calling a global function with example usage: get_context(request, response, use_global_db_client) and returns: Context