code: def test_raw_metric_data_request_item():
      time_now = time.time()
      metric = _RawMetricData(
          metric_name="foo", value=1.0, timestamp=time_now, step=10
      )
      expected = {
          "MetricName": "foo",
          "Value": 1.0,
          "Timestamp": str(int(time_now)),
          "Step": 10,
      }
      assert expected == metric.to_raw_metric_data()
  
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 9 for calling a global function with example usage: test_raw_metric_data_request_item() without return types