code: def test_auto_negative_chunks(self):
      raw_docs = ["".join(text) for text in self.texts]
      texts, annotations = finetune_to_indico_sequence(
          raw_docs,
          self.texts,
          self.labels,
          none_value=self.model.config.pad_token,
      )
      (
          train_texts,
          test_texts,
          train_annotations,
          test_annotations,
      ) = train_test_split(
          texts, annotations, test_size=0.1, random_state=42
      )
      ans_model = SequenceLabeler(
          max_length=5,
          chunk_context=0,
          auto_negative_sampling=True,
          n_epochs=1,
      )
      ans_model.fit(train_texts, train_annotations)
      ans_predictions = ans_model.predict(test_texts)
      ans_token_precision = sequence_labeling_token_precision(
          test_annotations, ans_predictions
      )
  
      baseline_model = SequenceLabeler(
          max_length=5,
          chunk_context=0,
          auto_negative_sampling=False,
          n_epochs=1,
      )
      baseline_model.fit(train_texts, train_annotations)
      baseline_predictions = baseline_model.predict(test_texts)
      baseline_token_precision = sequence_labeling_token_precision(
          test_annotations, baseline_predictions
      )
  
      assert (
          ans_token_precision["Named Entity"]
          > baseline_token_precision["Named Entity"]
      )
  
imports: import os
  import unittest
  import logging
  from copy import copy, deepcopy
  from pathlib import Path
  import codecs
  import json
  import random
  import time
  import weakref
  import gc
  import pytest
  from pytest import approx
  import tensorflow
  import numpy
  from sklearn.metrics import accuracy_score
  from sklearn.model_selection import train_test_split
  import requests
  from bs4 import BeautifulSoup
  from bs4.element import Tag
  from finetune import SequenceLabeler
  from finetune.base_models import GPT
  from finetune.config import get_config
  from finetune.encoding.sequence_encoder import finetune_to_indico_sequence
  from finetune.util.metrics import sequence_labeling_token_precision, sequence_labeling_token_recall, sequence_labeling_overlap_precision, sequence_labeling_overlap_recall
label_desc: Use image node_id 15 for calling the TestSequenceLabeler obj's underlying member method code with example usage: obj.test_auto_negative_chunks() without return types