code: def query(self, database, query, format=None):
      path = f"{self.database(database)}/{tilde_encode(query)}"
      if format is not None:
          path = path_with_format(path=path, format=format)
      return PrefixedUrlString(path)
  
file_path: datasette/datasette/url_builder.py
imports: from .utils import tilde_encode, path_with_format, HASH_LENGTH, PrefixedUrlString
  import urllib
label_desc: Use image node_id 9 for calling the Urls obj's underlying member method code with example usage: obj.query(database, query, format) and returns: PrefixedUrlString