class_docstr: Class for embedding a local file link in an IPython session, based on path
  
  e.g. to embed a link that was generated in the IPython notebook as my/data.txt
  
  you would do::
  
      local_file = FileLink("my/data.txt")
      display(local_file)
  
  or in the HTML notebook, just::
  
      FileLink("my/data.txt")
code: def _format_path(self):
      fp = "".join([self.url_prefix, html_escape(self.path)])
      return "".join(
          [
              self.result_html_prefix,
              self.html_link_str
              % (fp, html_escape(self.path, quote=False)),
              self.result_html_suffix,
          ]
      )
  
imports: from html import escape
  from os.path import exists, isfile, splitext, abspath, join, isdir
  from os import walk, sep, fsdecode
  from IPython.core.display import DisplayObject, TextDisplayObject
  from typing import Tuple, Iterable, Optional
label_desc: Use image node_id 2 for calling the FileLink obj's underlying member method code with example usage: obj._format_path() and returns: str