code: def _run_test(
      self, train, valid, early_stopping_rounds, metric="auto"
  ):
      max_iterations = 50
      m = self.model.create(
          train,
          "target",
          validation_set=valid,
          max_depth=2,
          max_iterations=max_iterations,
          early_stopping_rounds=early_stopping_rounds,
          metric=metric,
      )
      self.assertTrue(m.num_trees < max_iterations)
  
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 2 for calling the BoostedTreesRegressionEarlyStopTest obj's underlying member method code with example usage: obj._run_test(train, valid, early_stopping_rounds, metric) without return types