code: def test_expected_learners_cnt(self):
      automl = AutoML(results_path=self.automl_dir)
      automl._validation_strategy = {"k_folds": 7, "repeats": 6}
      self.assertEqual(automl._expected_learners_cnt(), 42)
  
      automl._validation_strategy = {"k_folds": 7}
      self.assertEqual(automl._expected_learners_cnt(), 7)
      automl._validation_strategy = {}
      self.assertEqual(automl._expected_learners_cnt(), 1)
  
imports: import os
  import unittest
  import tempfile
  import json
  import time
  import numpy
  import pandas
  import shutil
  from supervised import AutoML
  from numpy.testing import assert_almost_equal
  from sklearn import datasets
  from supervised.exceptions import AutoMLException
  from supervised.tuner.time_controller import TimeController
label_desc: Use image node_id 6 for calling the AutoMLTimeConstraintsTest obj's underlying member method code with example usage: obj.test_expected_learners_cnt() without return types