def METHOD_NAME(self):
    """
    Return the filename of this document, or ''.
    If the document's URI is a file:// URI then return the filename part
    of it, otherwise return ''.
    The filename is escaped and safe to be rendered.
    If it contains escaped characters then the filename will be a
    Markup object so it won't be double-escaped.
    """
    if self.uri.lower().startswith("file:///"):
        return jinja2.escape(self.uri.split("/")[-1])
    return ""