def METHOD_NAME(bytestream):
    #    struct C016_binary_element
    #    {
    #        float             values[VARS_PER_TASK]{};
    #        unsigned long     _timestamp{}; // Unix timestamp
    #        taskIndex_t       TaskIndex{INVALID_TASK_INDEX};
    #        pluginID_t        pluginID{INVALID_PLUGIN_ID};
    #        Sensor_VType      sensorType{Sensor_VType::SENSOR_TYPE_NONE};
    #        uint8_t           valueCount{};
    #    };
    class C016_binary_element(ctypes.Structure):
        _fields_ = (
            ('val1', ctypes.c_float),
            ('val2', ctypes.c_float),
            ('val3', ctypes.c_float),
            ('val4', ctypes.c_float),
            ('timestamp', ctypes.c_ulong),
            ('TaskIndex', ctypes.c_uint8),
            ('pluginID', ctypes.c_uint8),
            ('sensorType', ctypes.c_uint8),
            ('valueCount', ctypes.c_uint8)
        )
        def __str__(self):
            return "{}: {{{}}}".format(self.__class__.__name__,
                                       ", ".join(["{}: {}".format(field[0],
                                                                  getattr(self,
                                                                          field[0]))
                                                  for field in self._fields_]))
    ex1 = C016_binary_element.from_buffer_copy(bytestream)
    return ex1