code: def test_integration(self):
      df = pd.read_csv(DATA_PATH)
  
      ocr = [json.loads(o) for o in df.ocr.values]
      labels = [json.loads(l) for l in df.labels.values]
  
      train_ocr, test_ocr, train_labels, test_labels = train_test_split(
          ocr, labels, random_state=42, test_size=0.2
      )
  
      model = DocumentLabeler(base_model=DocRep)
      model.fit(train_ocr, train_labels)
      model_preds = model.predict(test_ocr)
      model_f1 = sequence_labeling_micro_token_f1(
          test_labels, model_preds
      )
  
      baseline_model = DocumentLabeler()  # RoBERTa
      baseline_model.fit(train_ocr, train_labels)
      baseline_model_preds = baseline_model.predict(test_ocr)
      baseline_model_f1 = sequence_labeling_micro_token_f1(
          test_labels, baseline_model_preds
      )
      self.assertGreater(model_f1, baseline_model_f1)
      self.assertGreater(model_f1, 0.95)
  
file_path: finetune/tests/test_document.py
imports: import os
  import json
  import unittest
  import pandas
  from sklearn.model_selection import train_test_split
  from finetune import DocumentLabeler
  from finetune.base_models import DocRep
  from finetune.util.metrics import sequence_labeling_micro_token_f1
label_desc: Use image node_id 4 for calling the TestDocumentLabeler obj's underlying member method code with example usage: obj.test_integration() without return types