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: element_test_helpers.rb
    path of file: ./repos/ae_page_objects/test/test_helpers
    
    the code of the file until where you have to start completion: module ElementTestHelpers

  def assert_nodes_equal(expected, value)
    assert_equal expected.class, value.class

    unless expected.respond_to?(:parent) && value.respond_to?(:pa
    
  def verify_element_on_parent(parent, field_method, expected_field_type, expected_field_page)
    assert_equal expected_field_type, parent.class.element_attributes[field_method]

    parent.send(field_method).tap do |field|
      verify_element(field, expected_field_type, parent, expected_field_page)
    end
  end