code: def test_metric_init(self):
      metric = Metric("valid_loss", lower_is_better=True)
      self.assertEqual("valid_loss", metric.name)
      self.assertTrue(metric.lower_is_better)
  
      metric = Metric("valid_acc", lower_is_better=False)
      self.assertEqual("valid_acc", metric.name)
      self.assertFalse(metric.lower_is_better)
  
file_path: small-text/tests/integration/small_text/integrations/pytorch/test_model_selection.py
imports: import tempfile
  import unittest
  import pytest
  from pathlib import Path
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
label_desc: Use image node_id 1 for calling the MetricTest obj's underlying member method code with example usage: obj.test_metric_init() without return types