code: def test_metric_value_is_better(new, old, metric, result):
      assert utils.metric_value_is_better(new, old, metric) == result
  
imports: import gzip
  import math
  import os
  import re
  from tempfile import TemporaryDirectory
  import unittest
  import numpy
  import pytest
  import torch
  from sockeye import __version__
  from sockeye import constants
  from sockeye import utils
label_desc: Use image node_id 15 for calling a global function with example usage: test_metric_value_is_better(new, old, metric, result) without return types