code: def test_raw_metric_data_invalid_timestamp():
      with pytest.raises(ValueError) as error1:
          _RawMetricData(
              metric_name="IFail",
              value=100,
              timestamp=time.time() - 2000000,
          )
      assert (
          "Timestamps must be between two weeks before and two hours from now"
          in str(error1)
      )
  
      with pytest.raises(ValueError) as error2:
          _RawMetricData(
              metric_name="IFail",
              value=100,
              timestamp=time.time() + 10000,
          )
      assert (
          "Timestamps must be between two weeks before and two hours from now"
          in str(error2)
      )
  
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 10 for calling a global function with example usage: test_raw_metric_data_invalid_timestamp() without return types