code: def test_datetime_validate_max_vs_min():
      dt = dt_2002
      dt_min = dt_1664
      dt_max = datetime.datetime(1337, 1, 1, tzinfo=pytz.utc)
      w = DatetimePicker(value=dt, min=dt_min)
      with pytest.raises(TraitError):
          w.max = dt_max
  
file_path: catboost/contrib/python/ipywidgets/py3/ipywidgets/widgets/tests/test_widget_datetime.py
imports: import pytest
  from contextlib import nullcontext
  import datetime
  import itertools
  import pytz
  from traitlets import TraitError
  from ..widget_datetime import DatetimePicker
label_desc: Use image node_id 11 for calling a global function with example usage: test_datetime_validate_max_vs_min() without return types