code: def path(self):
      if self.scope.get("raw_path") is not None:
          return (
              self.scope["raw_path"].decode("latin-1").partition("?")[0]
          )
      else:
          path = self.scope["path"]
          if isinstance(path, str):
              return path
          else:
              return path.decode("utf-8")
  
imports: import json
  from datasette.utils import MultiParams
  from mimetypes import guess_type
  from urllib.parse import parse_qs, urlunparse, parse_qsl
  from pathlib import Path
  from http.cookies import SimpleCookie, Morsel
  import aiofiles
  import aiofiles.os
label_desc: Use image node_id 10 for calling the Request obj's underlying member method code with example usage: obj.path() and returns: self, path, path