code: def _tmp_html(data):
      
      filepath = ''
      try:
          fid, filepath = tempfile.mkstemp(suffix='.html', prefix='folium_')
          os.write(fid, data.encode('utf8'))
          os.close(fid)
          yield filepath
      finally:
          if os.path.isfile(filepath):
              os.remove(filepath)
docs: Yields the path of a temporary HTML file containing data.