code: def test_no_validation_exception(self):
      self.assertRaises(
          ToolkitError, lambda: self._run_test(self.train, None, 5)
      )
  
file_path: turicreate/src/python/turicreate/test/test_boosted_trees_early_stop.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import turicreate
  from turicreate.toolkits._main import ToolkitError
  import random
label_desc: Use image node_id 7 for calling the BoostedTreesRegressionEarlyStopTest obj's underlying member method code with example usage: obj.test_no_validation_exception() without return types