code: def test_datetime_serialize_non_utz():
      # Non-existent timezone, so it will never be the local one:
      tz = pytz.FixedOffset(42)
      t = datetime.datetime(2002, 2, 20, 13, 37, 42, 7000, tz)
      assert datetime_to_json(t, None) == dict(
          year=2002,
          month=1,  # Months are 0-based indices in JS
          date=20,
          hours=12,
          minutes=55,
          seconds=42,
          milliseconds=7,
      )
  
file_path: catboost/contrib/python/ipywidgets/py3/ipywidgets/widgets/tests/test_datetime_serializers.py
imports: import pytest
  import datetime
  import pytz
  from traitlets import TraitError
  from ..trait_types import time_to_json, time_from_json, datetime_to_json, datetime_from_json
label_desc: Use image node_id 7 for calling a global function with example usage: test_datetime_serialize_non_utz() without return types