code: def test_raw_metric_data_naive_timestamp():
      naive_datetime = datetime.datetime.now()
      assert naive_datetime.tzinfo is None
      metric = _RawMetricData(
          metric_name="foo", value=1.0, timestamp=naive_datetime
      )
      local_datetime = naive_datetime.replace(
          tzinfo=dateutil.tz.tzlocal()
      )
      assert (local_datetime - local_datetime.utcoffset()).replace(
          tzinfo=datetime.timezone.utc
      ).timestamp() == metric.Timestamp
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/experiments/test_metrics.py
imports: from __future__ import absolute_import
  import os
  import pytest
  import tempfile
  import shutil
  import datetime
  import dateutil
  import time
  from sagemaker.experiments._metrics import _RawMetricData
label_desc: Use image node_id 7 for calling a global function with example usage: test_raw_metric_data_naive_timestamp() without return types