code: def get_datasets() -> List[Dataset]:
      """Get a list of available toy datasets."""
  
      digits_ds = load_digits()
      yield Dataset(
          name="digits", data=digits_ds.data, target=digits_ds.target
      )
  
      iris_ds = load_iris()
      yield Dataset(
          name="iris", data=iris_ds.data, target=iris_ds.target
      )
  
      try:  # for sklearn < 0.16
          from sklearn.datasets import load_breast_cancer
      except ImportError:
          pass
      else:
          cancer_ds = load_breast_cancer()
          yield Dataset(
              name="breast_cancer",
              data=cancer_ds.data,
              target=cancer_ds.target,
          )
  
file_path: sklearn-porter/tests/commons/__init__.py
imports: from collections import namedtuple
  from os import environ
  from pathlib import Path
  from typing import List
  from sklearn.ensemble.forest import ExtraTreesClassifier, RandomForestClassifier
  from sklearn.ensemble.weight_boosting import AdaBoostClassifier
  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
  import sklearn
  from sklearn.datasets import load_digits, load_iris
label_desc: Use image node_id 3 for calling a global function with example usage: get_datasets() without return types