code: def send_string(src, filename, type=None, **kwargs):
      """
      Convert data written to StringIO into the format expected by the Download component.
      :param src: a string or a writer that can write to StringIO
      :param filename: the name of the file
      :param type: type of the file (optional, passed to Blob in the javascript layer)
      :return: dict of data frame content (NOT base64 encoded) and meta data used by the Download component
      """
      content = (
          src
          if isinstance(src, str)
          else _io_to_str(io.StringIO(), src, **kwargs)
      )
      return dict(
          content=content, filename=filename, type=type, base64=False
      )
  
imports: import io
  import ntpath
  import base64
label_desc: Use image node_id 3 for calling a global function with example usage: send_string(src, filename, type) and returns: dict