code: def test_on_submit_deprecation():
      with pytest.deprecated_call() as record:
          Text().on_submit(lambda *args: ...)
      assert len(record) == 1
      assert record[0].filename == inspect.stack(context=0)[1].filename
  
imports: import inspect
  import pytest
  from ipywidgets.widgets.widget_string import Combobox, Text
label_desc: Use image node_id 4 for calling a global function with example usage: test_on_submit_deprecation() without return types