code: def file_response(
      self,
      full_path: PathLike,
      stat_result: os.stat_result,
      scope: Scope,
      status_code: int = 200,
  ) -> Response:
      method = scope["method"]
      request_headers = Headers(scope=scope)
  
      response = FileResponse(
          full_path,
          status_code=status_code,
          stat_result=stat_result,
          method=method,
      )
      if response.path.endswith("index.html"):
          response.headers["cache-control"] = "no-store"
      elif self.is_not_modified(response.headers, request_headers):
          return NotModifiedResponse(response.headers)
  
      return response
  
imports: import os
  import pathlib
  import stat
  import eta.core.utils
  from starlette.applications import Starlette
  from starlette.datastructures import Headers
  from starlette.middleware import Middleware
  from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
  from starlette.middleware.cors import CORSMiddleware
  from starlette.requests import Request
  from starlette.responses import FileResponse, RedirectResponse, Response
  from starlette.routing import Mount, Route
  from starlette.staticfiles import NotModifiedResponse, PathLike, StaticFiles
  from starlette.types import Scope
  import strawberry
  import fiftyone
  import fiftyone.constants
  from fiftyone.server.constants import SCALAR_OVERRIDES
  from fiftyone.server.context import GraphQL
  from fiftyone.server.extensions import EndSession
  from fiftyone.server.mutation import Mutation
  from fiftyone.server.query import Query
  from fiftyone.server.routes import routes
label_desc: Use image node_id 1 for calling the Static obj's underlying member method code with example usage: obj.file_response(full_path, stat_result, scope, status_code) and returns: response, NotModifiedResponse