code: def test_state_schema():
      from ipywidgets.widgets import IntSlider, Widget
      import json
      import jsonschema
  
      s = IntSlider()
      state = Widget.get_manager_state(drop_defaults=True)
      import yatest.common as yc
  
      with open(
          yc.source_path(
              "contrib/python/ipywidgets/py3/ipywidgets/state.schema.json"
          )
      ) as f:
          schema = json.load(f)
      jsonschema.validate(state, schema)
  
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 41 for calling a global function with example usage: test_state_schema() without return types