code: def test_tensorflow_wrapper_construction_requires_keras_model():
      import tensorflow as tf
  
      keras_model = tf.keras.Sequential(
          [tf.keras.layers.Dense(12, input_shape=(12,))]
      )
      assert isinstance(TensorFlowWrapper(keras_model), Model)
      with pytest.raises(ValueError):
          TensorFlowWrapper(Linear(2, 3))
  
imports: import numpy
  import pytest
  from thinc.api import Adam, ArgsKwargs, Linear, Model, TensorFlowWrapper, get_current_ops, keras_subclass, tensorflow2xp, xp2tensorflow
  from thinc.compat import has_cupy_gpu, has_tensorflow
  from thinc.util import to_categorical
  from ..util import check_input_converters, make_tempdir
label_desc: Use image node_id 10 for calling a global function with example usage: test_tensorflow_wrapper_construction_requires_keras_model() without return types