code: def test_validation_set(self):
      train = self.data
      valid = self.data
  
      # Test with a validation set
      model = tc.text_classifier.create(
          train, target="rating", validation_set=valid
      )
      self.assertTrue(
          "Validation Accuracy"
          in model.classifier.progress.column_names()
      )
  
      # Test without a validation set
      model = tc.text_classifier.create(
          train, target="rating", validation_set=None
      )
      self.assertTrue(
          "Validation Accuracy"
          not in model.classifier.progress.column_names()
      )
  
      # Test 'auto' validation set
      big_data = train.append(
          tc.SFrame(
              {
                  "rating": [5] * 100,
                  "place": ["d"] * 100,
                  "text": [
                      "large enough data for %5 percent validation split to activate"
                  ]
                  * 100,
              }
          )
      )
      model = tc.text_classifier.create(
          big_data, target="rating", validation_set="auto"
      )
      self.assertTrue(
          "Validation Accuracy"
          in model.classifier.progress.column_names()
      )
  
      # Test bad validation set string
      with self.assertRaises(TypeError):
          tc.text_classifier.create(
              train, target="rating", validation_set="wrong"
          )
  
      # Test bad validation set type
      with self.assertRaises(TypeError):
          tc.text_classifier.create(
              train, target="rating", validation_set=5
          )
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import tempfile
  import turicreate
  from turicreate.toolkits._main import ToolkitError
  from turicreate.toolkits._internal_utils import _mac_ver
  from .None import util
  import sys
label_desc: Use image node_id 5 for calling the TextClassifierCreateTests obj's underlying member method code with example usage: obj.test_validation_set() without return types