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: match_query.rb
    path of file: ./repos/capybara/lib/capybara/queries
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Capybara
  module Queries
    class MatchQuery < Capybara::Queries::SelectorQuery
      def visible
        options.key?(:visible) ? super : :all
      end

    private

      def assert_valid_keys
       
    
      def assert_valid_keys
        invalid_options = @options.keys & COUNT_KEYS
        unless invalid_options.empty?
          raise ArgumentError, "Match queries don't support quantity options. Invalid keys - #{invalid_options.join(', ')}"
        end

        super
      end