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: epmp1000_get_chart_cmd_exec.rb
    path of file: ./repos/metasploit-framework/modules/auxiliary/scanner/http
    
    the code of the file until where you have to start completion: ##
# This module requires
    
  def do_login(epmp_ver)
    if (epmp_ver < '3.1' || epmp_ver > '3.5' && epmp_ver != '3.5-RC7')
      print_error('This module is applicable to versions 3.1-3.5-RC7 only. Exiting now.')
      return
    elsif (epmp_ver >= '3.1' && epmp_ver < '3.4.1') # <3.4.1 uses login_1
      cookie, _blah1, _blah2, config_uri_get_chart = login_1(datastore['USERNAME'], datastore['PASSWORD'], epmp_ver)
      if cookie == 'skip' && config_uri_get_chart == 'skip'
        return
      else
        cmd_exec(config_uri_get_chart, cookie)
      end