code: def _get_all_classes():
      # Walk through all the packages from our base_path and
      # add all the classes to a list
      all_classes = []
      base_path = tslearn.__path__
      for _, name, _ in pkgutil.walk_packages(
          path=base_path, prefix="tslearn."
      ):
          try:
              module = __import__(name, fromlist="dummy")
          except ImportError:
              if name.endswith("shapelets"):
                  # keras is likely not installed
                  warnings.warn(
                      "Skipped common tests for shapelets "
                      "as it could not be imported. keras "
                      "(and tensorflow) are probably not "
                      "installed!"
                  )
                  continue
              elif name.endswith("pytorch_backend"):
                  # pytorch is likely not installed
                  continue
              else:
                  raise Exception("Could not import module %s" % name)
  
          all_classes.extend(
              inspect.getmembers(module, inspect.isclass)
          )
      return all_classes
  
file_path: tslearn/tslearn/tests/test_estimators.py
imports: import tslearn
  import pkgutil
  import inspect
  from functools import partial
  from operator import itemgetter
  import sklearn
  from sklearn.base import BaseEstimator, ClassifierMixin, ClusterMixin, RegressorMixin, TransformerMixin
  from sklearn.exceptions import SkipTestWarning
  from sklearn.utils.estimator_checks import check_no_attributes_set_in_init, check_parameters_default_constructible, _maybe_skip
  from tslearn.tests.sklearn_patches import check_clustering, check_non_transf_est_n_iter, check_fit_idempotent, check_classifiers_classes, check_classifiers_train, check_estimators_pickle, check_supervised_y_2d, check_regressor_data_not_an_array, check_classifier_data_not_an_array, check_regressors_int_patched, check_classifiers_cont_target, check_pipeline_consistency, yield_all_checks, _create_large_ts_dataset
  from tslearn.shapelets import LearningShapelets
  import warnings
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: _get_all_classes() and returns: all_classes