code: def test_from_proto_error():
      with pytest.raises(ValueError, match="Unrecognized condition"):
          proto = mock.Mock()
          proto.WhichOneof.return_value = "unknown"
          conditions.Condition.from_proto(proto)
  
file_path: keras-tuner/keras_tuner/engine/conditions_test.py
imports: from unittest import mock
  import pytest
  from keras_tuner.engine import conditions
label_desc: Use image node_id 1 for calling a global function with example usage: test_from_proto_error() without return types