code: def _yield_preproc_steps(model):
      if not isinstance(model, Pipeline):
          return
  
      preproc_pipe = Pipeline(model.steps[:-1])
      for key, val in preproc_pipe.get_params().items():
          if isinstance(val, BaseEstimator):
              if not isinstance(val, (Pipeline, FeatureUnion)):
                  yield key, val
  
imports: from functools import partial
  from importlib import import_module
  from itertools import chain
  import re
  import shlex
  import sys
  from sklearn.base import BaseEstimator
  from sklearn.pipeline import FeatureUnion
  from sklearn.pipeline import Pipeline
label_desc: Use image node_id 7 for calling a global function with example usage: _yield_preproc_steps(model) without return types