code: def _get_dendrogram_ordering(parent, linkage, root):
      if parent < root:
          return []
  
      return (
          _get_dendrogram_ordering(
              int(linkage[parent - root][0]), linkage, root
          )
          + _get_dendrogram_ordering(
              int(linkage[parent - root][1]), linkage, root
          )
          + [parent]
      )
  
imports: import numpy
  from scipy.cluster.hierarchy import dendrogram
  from sklearn.manifold import TSNE
  from sklearn.decomposition import PCA
  from sklearn.metrics import pairwise_distances
  from warnings import warn
  from ._hdbscan_tree import compute_stability, labelling_at_cut, recurse_leaf_dfs
label_desc: Use image node_id 4 for calling a global function with example usage: _get_dendrogram_ordering(parent, linkage, root) and returns: unknown, list