code: def test_raises_on_non_value_widget():
      """Test that passing in a non-value widget raises an error"""
  
      class BadWidget(Widget):
          """A widget that contains a `value` traitlet"""
  
          value = Float()
  
      with pytest.raises(TypeError, match=".* not a ValueWidget.*"):
          interactive(f, b=BadWidget())
  
imports: from unittest.mock import patch
  import os
  from collections import OrderedDict
  import pytest
  import ipywidgets
  from traitlets import TraitError, Float
  from ipywidgets import interact, interact_manual, interactive, interaction, Output, Widget
  from .utils import setup, teardown
label_desc: Use image node_id 30 for calling a global function with example usage: test_raises_on_non_value_widget() without return types