code: def test_convert_metrics_to_numpy() -> None:
      metrics = {"loss1": 1, "loss2": torch.tensor(2)}
      converted_metrics = metric_utils._convert_metrics_to_numpy(
          metrics
      )
      assert converted_metrics == {"loss1": 1, "loss2": np.array(2)}
  
file_path: determined/harness/tests/experiment/pytorch/test_metric_utils.py
imports: import logging
  from typing import Any, Dict, List, Tuple, Union
  import numpy
  import pytest
  import torch
  import determined.errors
  import determined.pytorch._metric_utils
  from determined import pytorch
label_desc: Use image node_id 4 for calling a global function with example usage: test_convert_metrics_to_numpy() without return types