def METHOD_NAME():
    parser = argparse.ArgumentParser(
        description="""Determine battery drain and battery life by running
                       the specified action.  Battery life is shown for:
                       current capacity, capacity when battery is full,
                       and capacity when battery is full and was brand new
                       (design capacity)""")
    parser.add_argument('-i', '--idle', help="Run the test while system is"
                        " idling", action='store_true')
    parser.add_argument('-s3', '--sleep', help="Run the test while system"
                        " is suspended", action='store_true')
    parser.add_argument('-t', '--time',
                        help="Specify the allotted time in seconds to run",
                        type=int, required=True)
    parser.add_argument('-m', '--movie',
                        help="Run the test while playing the file MOVIE")
    args = parser.parse_args()
    test_time = args.time
    battery_before = get_battery_state()
    if not validate_battery_info(battery_before):
        return 1
    print(battery_before)
    if args.idle:
        time.sleep(test_time)
    elif args.movie:
        totem_settings = Gio.Settings.new("org.gnome.totem")
        totem_settings.set_boolean("repeat", True)
        a = subprocess.Popen(['totem', '--fullscreen', args.movie])
        time.sleep(test_time)
        a.kill()
        totem_settings = Gio.Settings.new("org.gnome.totem")
        totem_settings.set_boolean("repeat", False)
    elif args.sleep:
        subprocess.call(['fwts', 's3', '--s3-sleep-delay=' + str(test_time)])
    battery_after = get_battery_state()
    if not validate_battery_info(battery_after):
        return 1
    print(battery_after)
    return (battery_life(battery_before, battery_after, test_time))