def METHOD_NAME(self, config, index, row):
    """
    Converts a collect SNMP table row into a sensor dict, using the
    options defined in the config dict.
    """
    if 'online' in config:
        online = row.get(config['online'], 'offline')
        if online == 'offline':
            return
    internal_name = config['internal_prefix'] + str(index)
    descr = row.get(config['descr'], internal_name)
    mibobject = self.nodes.get(config['readout'])
    readout_oid = str(mibobject.oid + str(index))
    if 'unit' in config:
        unit = row.get(config['unit'], None)
        if unit == 'fahr':
            unit = Sensor.UNIT_FAHRENHEIT
        if unit == 'C':
            unit = Sensor.UNIT_CELSIUS
    else:
        unit = config['_unit']
    return {
        'oid': readout_oid,
        'unit_of_measurement': unit,
        'precision': config['precision'],
        'scale': None,
        'description': descr,
        'name': descr,
        'internal_name': internal_name,
        'mib': 'SPAGENT-MIB',
    }