code: def dataset_example(
      dataset="occupancy",
      manifold="all",
      path="images/",
      quick=False,
      **kwargs,
  ):
      if manifold == "all":
          if path is not None and not os.path.isdir(path):
              "please specify a directory to save examples to"
  
          for algorithm in MANIFOLD_ALGORITHMS:
              if algorithm in SKIP:
                  continue
  
              print(
                  "generating {} {} manifold".format(dataset, algorithm)
              )
              fpath = os.path.join(
                  path, "{}_{}_manifold.png".format(dataset, algorithm)
              )
              try:
                  dataset_example(dataset, algorithm, fpath)
              except Exception as e:
                  print(
                      "could not visualize {} manifold on {} data: {}".format(
                          algorithm, dataset, e
                      )
                  )
                  continue
  
          # Break here!
          return
  
      # Create single example
  
      _, ax = plt.subplots(figsize=(9, 6))
  
      # Checks for the dataset which user wants to use
      if dataset == "occupancy":
          X, y = load_occupancy()
      elif dataset == "concrete":
          X, y = load_concrete()
      else:
          raise Exception("unknown dataset '{}'".format(dataset))
  
      # Check if the quick method is called
      if quick:
          oz = manifold_embedding(
              X, y, manifold=manifold, show=False, **kwargs
          )
          oz.show(outpath=path)
      else:
          oz = Manifold(ax=ax, manifold=manifold, **kwargs)
          oz.fit_transform(X, y)
          oz.show(outpath=path)
  
file_path: yellowbrick/docs/api/features/manifold.py
imports: import os
  import matplotlib.pyplot
  from sklearn import datasets
  from sklearn.pipeline import Pipeline
  from sklearn.feature_selection import f_classif
  from sklearn.feature_selection import SelectKBest
  from yellowbrick.datasets import load_occupancy, load_concrete
  from yellowbrick.features.manifold import Manifold, MANIFOLD_ALGORITHMS, manifold_embedding
label_desc: Use image node_id 1 for calling a global function with example usage: dataset_example(dataset, manifold, path, quick) without return types