code: def ranged_file_response(
      self,
      full_path: str | os.PathLike,
      stat_result: os.stat_result,
      scope: Scope,
  ) -> Response:
      method = scope["method"]
      request_headers = Headers(scope=scope)
  
      range_header = request_headers["range"]
  
      match = RANGE_REGEX.search(range_header)
      if not match:
          raise HTTPException(400)
  
      start, end = match.group("start"), match.group("end")
  
      range = OpenRange(int(start), int(end) if end else None)
  
      return RangedFileResponse(
          full_path, range, stat_result=stat_result, method=method
      )
  
imports: from __future__ import annotations
  import os
  import re
  import stat
  from typing import NamedTuple
  from urllib.parse import quote
  import aiofiles
  from aiofiles.os import stat
  from starlette.datastructures import Headers
  from starlette.exceptions import HTTPException
  from starlette.responses import Response, guess_type
  from starlette.staticfiles import StaticFiles
  from starlette.types import Receive, Scope, Send
label_desc: Use image node_id 2 for calling the RangedStaticFiles obj's underlying member method code with example usage: obj.ranged_file_response(full_path, stat_result, scope) and returns: RangedFileResponse