def METHOD_NAME(obis):
    measurement = int.from_bytes(obis[0:2], byteorder='big')
    raw_type = int.from_bytes(obis[2:3], byteorder='big')
    if raw_type == 4:
        datatype = 'actual'
    elif raw_type == 8:
        datatype = 'counter'
    elif raw_type == 0 and measurement == 36864:
        datatype = 'version'
    else:
        datatype = 'unknown'
        print('unknown datatype: measurement {} datatype {} raw_type {}'.format(measurement, datatype, raw_type))
    return (measurement, datatype)