code: def test_regressions_of_classifiers(
      tmp_root_dir: Path,
      candidate: Candidate,
      dataset: Dataset,
      template: str,
      language: str,
  ):
      if not can(candidate.clazz(), language, template, "predict"):
          pytest.skip(
              "Skip unsupported estimator/language/template combination"
          )
  
      # Estimator:
      orig_est = candidate.create()
      x, y = dataset.data, dataset.target
      orig_est.fit(X=x, y=y)
  
      warnings.filterwarnings("error")
      try:
          est = Estimator(orig_est)
      except exception.QualityWarning as w:
          pytest.skip(str(w))
  
      # Samples:
      test_x = np.vstack((dataset_uniform_x(x), dataset_generate_x(x)))
  
      # Directory:
      tmp_dir = fs_mkdir(
          tmp_root_dir,
          [
              ("test", "regressions_of_classifiers"),
              ("estimator", candidate.name),
              ("dataset", dataset.name),
              ("language", language),
              ("template", template),
          ],
      )
  
      warnings.filterwarnings("default")
      try:
          score = est.test(
              test_x,
              language=language,
              template=template,
              directory=tmp_dir,
              delete_created_files=False,
          )
          assert score == 1.0
      except exception.CodeTooLarge:
          msg = (
              "The code too large for the combination: "
              "estimator: {}, language: {}, template: {}, dataset: {}"
              "".format(
                  candidate.name, language, template, dataset.name
              )
          )
          warnings.warn(msg)
      except exception.TooManyConstants:
          msg = (
              "The code has too many constants and can not be compiled: "
              "estimator: {}, language: {}, template: {}, dataset: {}"
              "".format(
                  candidate.name, language, template, dataset.name
              )
          )
          warnings.warn(msg)
      except Exception as e:
          pytest.fail("Unexpected exception ... " + str(e))
  
imports: import os
  import random
  import shutil
  import warnings
  from os import environ
  from pathlib import Path
  from sys import version_info
  from typing import Callable, Tuple
  import numpy
  import pytest
  from joblib import dump
  from sklearn import preprocessing
  from sklearn.base import BaseEstimator
  from sklearn.datasets import load_iris
  from sklearn.ensemble.forest import ExtraTreesClassifier, RandomForestClassifier
  from sklearn.ensemble.weight_boosting import AdaBoostClassifier
  from sklearn.linear_model import SGDClassifier
  from sklearn.naive_bayes import BernoulliNB, GaussianNB
  from sklearn.neighbors.classification import KNeighborsClassifier
  from sklearn.svm import SVC, LinearSVC, NuSVC
  from sklearn.tree.tree import DecisionTreeClassifier
  from sklearn_porter import exceptions
  from sklearn_porter.cli.__main__ import parse_args
  from sklearn_porter.Estimator import Estimator, can, show
  from sklearn_porter.cli.command.port import main
  from sklearn_porter.cli.command.save import main
  from sklearn_porter.cli.command.show import main
  from tests.commons import SKLEARN_VERSION, CANDIDATES, CLASSIFIERS, DATASETS, Candidate, Dataset, ROOT_DIR, RESOURCES_DIR
  from tests.utils import dataset_generate_x, dataset_uniform_x, fs_mkdir
label_desc: Use image node_id 25 for calling a global function with example usage: test_regressions_of_classifiers(tmp_root_dir, candidate, dataset, template, language) without return types