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: enum_artifacts.rb
    path of file: ./repos/metasploit-framework/modules/post/windows/gather
    
    the code of the file until where you have to start completion: ##
# This 
    
  def run
    # Load artifacts from yaml file. Artifacts are organized by what they are evidence of.
    begin
      yaml = YAML.load_file(datastore['ARTIFACTS'])
      raise 'File is not valid YAML' unless yaml.instance_of?(Hash)
    rescue StandardError => e
      fail_with(Failure::BadConfig, "Could not load artifacts YAML file '#{datastore['ARTIFACTS']}' : #{e.message}")
    end