<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_xups_bat_capacity(the_session, the_helper, the_snmp_value):
 """ OID .1.3.6.1.4.1.534.1.2.4.0 MIB Excerpt Battery percent charge. """


    the_helper.add_metric(
        label=the_helper.options.type,
        value=a_snmp_value,
        uom='%')

    the_helper.set_summary("Remaining Battery Capacity {} %".format(the_snmp_value))