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: yaml_loader.rb
    path of file: ./repos/japanese_address_parser/spec/support
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'yaml'

module YamlLoader
  def slice_load(file)
    if ::ENV.fetch('CI_NODE_TOTAL', nil) && ::ENV.fetch('CI_NODE_INDEX', nil)
      slice_size = Integer(::ENV.fetch('CI_NODE_TOTA
    
  def slice_load(file)
    if ::ENV.fetch('CI_NODE_TOTAL', nil) && ::ENV.fetch('CI_NODE_INDEX', nil)
      slice_size = Integer(::ENV.fetch('CI_NODE_TOTAL'), 10)
      index = Integer(::ENV.fetch('CI_NODE_INDEX'), 10)
    else
      slice_size = 1
      index = 0
    end