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: pagination.rb
    path of file: ./repos/tolk/lib/tolk
    
    the code of the file until where you have to start completion: module Tolk
  module Pagination
    module Methods
    
      def tolk_paginate(collection, options = {})
        if respond_to?(:will_paginate)
          # If parent app is using Will Paginate, we need to use it also
          will_paginate collection, options
        else
          # Otherwise use Kaminari
          paginate collection, **options
        end