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

module ArLazyPreload
  m
    
      def association_needs_preload?(association_name)
        association_tree.any? do |node|
          case node
          when Symbol
            node == association_name
          when Hash
            node.key?(association_name)
          end
        end