code: def insert_text(self, docs, labels):
      if len(docs) != len(labels):
          raise ValueError(
              "Number of documents must be equal to the number of labels"
          )
      for doc, label in zip(docs, labels):
          for l in label:
              l["text"] = doc[l["start"] : l["end"]]
      return labels
  
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 3 for calling the TestMetrics obj's underlying member method code with example usage: obj.insert_text(docs, labels) and returns: labels