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: work_form_helper.rb
    path of file: ./repos/hyrax/app/helpers/hyrax
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
module Hyrax
    
    def form_file_set_select_for(parent:)
      return parent.select_files if parent.respond_to?(:select_files)
      return {} unless parent.respond_to?(:member_ids)

      file_sets =
        Hyrax::PcdmMemberPresenterFactory.new(parent, nil).file_set_presenters

      file_sets.each_with_object({}) do |presenter, hash|
        hash[presenter.title_or_label] = presenter.id
      end
    end