class_docstr: TestMetrics
class_docstr_tok: ["TestMetrics"]
code: def test_Metrics(self) -> None:
      metrics.show_avaliable_metrics()
      metric = metrics.get_metric_by_name("Accuracy")
  
      preds = torch.randn(10, 5).softmax(dim=-1)
      target = torch.randint(5, (10,))
      metric.reset()
      metric.update(preds, target)
      metric.compute()
      self.assertEqual(True, True)
  
imports: import unittest
  import torch
  from towhee.trainer import metrics
label_desc: Use image node_id 1 for calling the TestMetrics obj's underlying member method code with example usage: obj.test_Metrics() without return types