code: def clusters_from_prediction_data(prediction_data):
      """
      Extract selected clusters from PredictionData instance.
      """
      return np.array(
          sorted(list(prediction_data.reverse_cluster_map.values()))
      ).astype(np.intp)
  
imports: import copy
  from warnings import warn
  import numpy
  from ._hdbscan_tree import compute_stability, get_cluster_tree_leaves
  from .hdbscan_ import HDBSCAN, _tree_to_labels
  from .plots import _bfs_from_cluster_tree
  from .prediction import PredictionData, _find_cluster_and_probability, _find_neighbor_and_lambda
  from ._prediction_utils import get_tree_row_with_child, dist_membership_vector, outlier_membership_vector, prob_in_some_cluster, all_points_dist_membership_vector, all_points_outlier_membership_vector, all_points_prob_in_some_cluster
label_desc: Use image node_id 12 for calling a global function with example usage: clusters_from_prediction_data(prediction_data) and returns: np