def responder(node_id: NodeId, message: MessageDefinition) -> None:
    'Message responder.'
    if isinstance(message, SetSensorThresholdRequest):
        can_message_notifier.notify(SensorThresholdResponse(payload=SensorThresholdResponsePayload(threshold=message.payload.threshold, sensor=SensorTypeField(sensor._sensor_type), sensor_id=SensorIdField(SensorId.S0), mode=message.payload.mode)), ArbitrationId(parts=ArbitrationIdParts(message_id=ReadFromSensorResponse.message_id, node_id=NodeId.host, function_code=0, originating_node_id=node_id)))
Message responder.
def responder(node_id: NodeId, message: MessageDefinition) -> None:
    
    if isinstance(message, SetSensorThresholdRequest):
        can_message_notifier.notify(SensorThresholdResponse(payload=SensorThresholdResponsePayload(threshold=message.payload.threshold, sensor=SensorTypeField(sensor._sensor_type), sensor_id=SensorIdField(SensorId.S0), mode=message.payload.mode)), ArbitrationId(parts=ArbitrationIdParts(message_id=ReadFromSensorResponse.message_id, node_id=NodeId.host, function_code=0, originating_node_id=node_id)))