code: def _to_classes(labels_map_rev):
      targets_to_labels = {v: k for k, v in labels_map_rev.items()}
  
      classes = []
      for target in range(
          max(targets_to_labels.keys(), default=-1) + 1
      ):
          if target in targets_to_labels:
              classes.append(targets_to_labels[target])
          else:
              classes.append(str(target))
  
      return classes
  
imports: import logging
  import os
  import warnings
  import yaml
  import eta.core.utils
  import fiftyone.core.labels
  import fiftyone.core.storage
  import fiftyone.utils.data
label_desc: Use image node_id 14 for calling a global function with example usage: _to_classes(labels_map_rev) and returns: classes