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: generated.rb
    path of file: ./repos/jets/lib/jets/router/helpers/named_routes
    
    the code of the file until where you have to start completion: require 'active_support/core_ext/module/remove_method'

module Jets::Router::Helpers::NamedRoutes
  module Generated
    def create_helper_module(route_set)
      module_name = helper_mod
    
    def path
      query_string = @options.dup # make copy to modify
      format = query_string.delete(:format)
      query_string.delete(:action)
      query_string.delete(:controller)
      query_string.delete(:only_path)

      path = path_with_replaced_placeholders
      path = prepend_engine_mounted_at(path)
      path = "#{path}.#{format}" if format
      path = "#{path}?#{query_string.to_query}" unless query_string.empty?
      path = add_apigw_stage(path)
      path
    end