code: def test_convert_number_to_datetime(
      reference_datetime: datetime.datetime,
      timestamp: Any,
      raises: ContextManager,
  ):
      """Ensure that numeric timestamps are correctly converted to datetime objects.
  
      Args:
          reference_datetime: A datetime object with the expected date/time
          timestamp: The timestamp to convert in s or ms
          raises: context manager to check for expected exceptions
      """
      with raises:
          dt = convert_number_to_datetime(timestamp)
  
          # Check that the returned datetime is accurate to the scale of seconds.
          assert dt.year == reference_datetime.year
          assert dt.month == reference_datetime.month
          assert dt.day == reference_datetime.day
          assert dt.hour == reference_datetime.hour
          assert dt.minute == reference_datetime.minute
          assert dt.second == reference_datetime.second
  
imports: import datetime
  from contextlib import nullcontext
  from typing import Any, ContextManager
  import pytest
  from ludwig.utils.date_utils import convert_number_to_datetime
label_desc: Use image node_id 2 for calling a global function with example usage: test_convert_number_to_datetime(reference_datetime, timestamp, raises) without return types