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: import_test_coverage_spec.rb
    path of file: ./repos/gitlabhq/spec/lib/gitlab/import_export
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'spec_helper'

# We want to test Import on "complete" data set,
# which means that every relation (as in our Import/Export definition) is covered.
# Fixture JSONs we use for test
    
  def gather_relations(item, res, path)
    case item
    when Hash
      item.each do |k, v|
        next unless (v.is_a?(Array) || v.is_a?(Hash)) && v.present?

        new_path = path + [k]
        res << new_path
        gather_relations(v, res, new_path)
      end
    when Array
      item.each { |i| gather_relations(i, res, path) }
    end