code: def select_jinja_autoescape(self, filename: str) -> bool:
          
          if filename is None:
              return True
          return Path(filename).suffix in {'.htm', '.html', '.xhtml', '.xml'}
docs: Returns True if the filename indicates that it should be escaped.