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: execute_policy.rb
    path of file: ./repos/elasticsearch-ruby/elasticsearch-api/lib/elasticsearch/api/actions/enrich
    
    the code of the file until where you have to start completion: # Licensed to Elasticsearch B.V. under one 
    
        def execute_policy(arguments = {})
          request_opts = { endpoint: arguments[:endpoint] || 'enrich.execute_policy' }

          defined_params = [:name].each_with_object({}) do |variable, set_variables|
            set_variables[variable] = arguments[variable] if arguments.key?(variable)
          end
          request_opts[:defined_params] = defined_params unless defined_params.empty?

          raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]

          arguments = arguments.clone
          headers = arguments.delete(:headers) || {}

          body = nil

          _name = arguments.delete(:name)

          method = Elasticsearch::API::HTTP_PUT
          path   = "_enrich/policy/#{Utils.__listify(_name)}/_execute"
          params = Utils.process_params(arguments)

          Elasticsearch::API::Response.new(
            perform_request(method, path, params, body, headers, request_opts)
          )
        end