You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: upload_file.rb
    path of file: ./repos/vets-api/modules/vba_documents/app/models/vba_documents
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'vba_documents/multipart_pa
    
    def parse_and_upload!
      parsed = multipart.open do |file|
        VBADocuments::MultipartParser.parse(file.path)
      end
      parsed_files.attach(io: StringIO.new(parsed['metadata'].to_s), filename: "#{guid}_metadata.json")
      pdf_keys = parsed.keys - ['metadata']
      pdf_keys.each do |k|
        parsed_files.attach(io: File.open(parsed[k]), filename: "#{guid}_#{k}.pdf")
      end
      save!
    end