code: def send_file(path, filename=None, type=None):
      """
      Convert a file into the format expected by the Download component.
      :param path: path to the file to be sent
      :param filename: name of the file, if not provided the original filename is used
      :param type: type of the file (optional, passed to Blob in the javascript layer)
      :return: dict of file content (base64 encoded) and meta data used by the Download component
      """
      # If filename is not set, read it from the path.
      if filename is None:
          filename = ntpath.basename(path)
      # Read the file contents and send it.
      with open(path, "rb") as f:
          return send_bytes(f.read(), filename, type)
  
imports: import io
  import ntpath
  import base64
label_desc: Use image node_id 1 for calling a global function with example usage: send_file(path, filename, type) and returns: send_bytes