code: def setUp(self):
      x = "Alert: Pepsi Company stocks are up today April 5, 2010 and no one profited."
      y_true = [
          {"start": 7, "end": 20, "label": "entity"},
          {"start": 41, "end": 54, "label": "date"},
      ]
      y_overlap = [
          {"start": 5, "end": 16, "label": "entity"},
          {"start": 34, "end": 50, "label": "date"},
      ]
      y_extra_overlap = [
          {"start": 6, "end": 10, "label": "entity"},
          {"start": 15, "end": 23, "label": "entity"},
          {"start": 34, "end": 50, "label": "date"},
      ]
      y_superset = [
          {"start": 6, "end": 21, "label": "entity"},
          {"start": 38, "end": 60, "label": "date"},
      ]
      y_false_pos = [
          {"start": 21, "end": 28, "label": "entity"},
          {"start": 62, "end": 65, "label": "date"},
      ]
      y_false_neg = [
          {"start": 7, "end": 20, "label": "entity"},
      ]
  
      self.X = [x for i in range(10)]
      self.Y_false_pos = self.extend_label(self.X, y_false_pos, 10)
      self.Y_true = self.extend_label(self.X, y_true, 10)
      self.Y_overlap = self.extend_label(self.X, y_overlap, 10)
      self.Y_extra_overlap = self.extend_label(
          self.X, y_extra_overlap, 10
      )
      self.Y_superset = self.extend_label(self.X, y_superset, 10)
      self.Y_false_neg = self.extend_label(self.X, y_false_neg, 10)
  
      self.seq_expected_correct = {
          "entity": {
              "false_positives": 0,
              "false_negatives": 0,
              "true_positives": 10,
              "precision": 1.0,
              "recall": 1.0,
              "f1-score": 1.0,
          },
          "date": {
              "false_positives": 0,
              "false_negatives": 0,
              "true_positives": 10,
              "precision": 1.0,
              "recall": 1.0,
              "f1-score": 1.0,
          },
          "micro-f1": 1.0,
          "weighted-f1": 1.0,
          "macro-f1": 1.0,
      }
      self.seq_expected_incorrect = {
          "entity": {
              "false_positives": 10,
              "false_negatives": 10,
              "true_positives": 0,
              "precision": 0.0,
              "recall": 0.0,
              "f1-score": 0.0,
          },
          "date": {
              "false_positives": 10,
              "false_negatives": 10,
              "true_positives": 0,
              "precision": 0.0,
              "recall": 0.0,
              "f1-score": 0.0,
          },
          "micro-f1": 0.0,
          "macro-f1": 0.0,
          "weighted-f1": 0.0,
      }
  
imports: import unittest
  import pytest
  from finetune.util.metrics import seq_recall, seq_precision, get_seq_count_fn, micro_f1, sequence_f1, sequences_overlap
label_desc: Use image node_id 1 for calling the TestMetrics obj's underlying member method code with example usage: obj.setUp() without return types