<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_inlet(self, helper):
 """ check the Inlets of Raritan PDUs """

        # walk the data
        try:
            inlet_values = self.sess.walk_oid(self.oids['oid_inlet_value'])
            inlet_units = self.sess.walk_oid(self.oids['oid_inlet_unit'])
            inlet_digits = self.sess.walk_oid(self.oids['oid_inlet_digits'])
            inlet_states = self.sess.walk_oid(self.oids['oid_inlet_state'])
            inlet_warning_uppers = self.sess.walk_oid(self.oids['oid_inlet_warning_upper'])
            inlet_critical_uppers = self.sess.walk_oid(self.oids['oid_inlet_critical_upper'])
            inlet_critical_lowers = self.sess.walk_oid(self.oids['oid_inlet_critical_lower'])
            inlet_warning_lowers = self.sess.walk_oid(self.oids['oid_inlet_warning_lower'])
        except health_monitoring_plugins.SnmpException as e:
            helper.exit(summary=str(e), exit_code=unknown, perfdata='')

        # just print the summary, that the inlet sensors are checked
        helper.add_summary("Inlet")

        # all list must have the same length, if not something went wrong. that makes it easier and we need less loops    
        # translate the data in human readable units with help of the dicts
        for x in range(len(inlet_values)):
            inlet_unit = units[int(inlet_units[x].val)]
            inlet_digit = inlet_digits[x].val
            inlet_state = states[int(inlet_states[x].val)]
            inlet_value = real_value(inlet_values[x].val, inlet_digit)
            inlet_warning_upper = real_value(inlet_warning_uppers[x].val, inlet_digit)
            inlet_critical_upper = real_value(inlet_critical_uppers[x].val, inlet_digit)
            inlet_warning_lower = real_value(inlet_warning_lowers[x].val, inlet_digit)
            inlet_critical_lower = real_value(inlet_critical_lowers[x].val, inlet_digit)

            if inlet_state != "normal":
                # we don't want to use the thresholds. we rely on the state value of the device
                helper.add_summary("%s %s is %s" % (inlet_value, inlet_unit, inlet_state))
                helper.status(critical)

            # we always want to see the values in the long output and in the perf data
            helper.add_summary("%s %s" % (inlet_value, inlet_unit))
            helper.add_long_output("%s %s: %s" % (inlet_value, inlet_unit, inlet_state))
            helper.add_metric("Sensor " + str(x) + " -%s-" % inlet_unit, inlet_value,
                              inlet_warning_lower +\
                              ":" + inlet_warning_upper, inlet_critical_lower + ":" +\
                              inlet_critical_upper, "", "", "")