code: def test_datetime_cross_validate_value_min_max(
      input_value,
      input_min,
      input_max,
      expected,
  ):
      w = DatetimePicker(value=dt_2002, min=dt_2002, max=dt_2002)
      should_raise = expected is TraitError
      with pytest.raises(expected) if should_raise else nullcontext():
          with w.hold_trait_notifications():
              w.value = input_value
              w.min = input_min
              w.max = input_max
      if not should_raise:
          assert w.value is expected
  
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 5 for calling a global function with example usage: test_datetime_cross_validate_value_min_max(input_value, input_min, input_max, expected) without return types