code: def test_maxSentenceLength(self):
      with pytest.raises(ValueError):
          self.classifier.setMaxSentenceLength(5000)
  
file_path: spark-nlp/python/test/annotator/classifier_dl/bert_for_sequence_classification_test.py
imports: import os
  import unittest
  import pytest
  from sparknlp.annotator import *
  from sparknlp.base import *
  from test.annotator.common.has_max_sentence_length_test import HasMaxSentenceLengthTests
  from test.util import SparkContextForTest
label_desc: Use image node_id 3 for calling the BertForSequenceClassificationTestSpec obj's underlying member method code with example usage: obj.test_maxSentenceLength() without return types