code: def test_time_validate_max_vs_value():
      t = datetime.time(13, 37, 42, 7)
      t_min = datetime.time(2)
      t_max = datetime.time(12)
      w = TimePicker(value=t, min=t_min)
      w.max = t_max
      assert w.value.hour == 12
  
file_path: catboost/contrib/python/ipywidgets/py3/ipywidgets/widgets/tests/test_widget_time.py
imports: import pytest
  import datetime
  from traitlets import TraitError
  from ..widget_time import TimePicker
label_desc: Use image node_id 9 for calling a global function with example usage: test_time_validate_max_vs_value() without return types