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: helpers.rb
    path of file: ./repos/truffleruby/lib/gems/gems/rbs-2.8.2/lib/rbs/prototype
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RBS
  module Prototype
    mod
    
      def keyword_hash?(node)
        if node && node.type == :HASH
          node.children[0].children.compact.each_slice(2).all? {|key, _|
            key.type == :LIT && key.children[0].is_a?(Symbol)
          }
        else
          false
        end