code: def _sort_dict_to_list(index_value_dict):
      """
      Convert a dictionary to a list sorted by index and return the values in that order.
  
      Parameters:
      - index_value_dict (dict): The input dictionary where keys represent indices and values are the corresponding elements.
  
      Returns:
      list: A list containing the values from the input dictionary, sorted by index.
  
      Example:
      >>> my_dict = {'0': '0', '1': '1', '2': '2', '3': '3', '4': '4'}
      >>> sort_dict_to_list(my_dict)
      ['0', '1', '2', '3', '4']
      """
      sorted_list = [
          value
          for key, value in sorted(
              index_value_dict.items(), key=lambda x: int(x[0])
          )
      ]
      return sorted_list
  
imports: from multiprocessing import Pool
  from typing import Optional, Any, Dict, Tuple, Union, List, TYPE_CHECKING, TypeVar, DefaultDict
  import numpy
  import collections
  from cleanlab.internal.constants import MAX_CLASS_TO_SHOW, ALPHA, EPSILON, TINY_VALUE
  from cleanlab.object_detection.filter import _filter_by_class, _calculate_true_positives_false_positives
  from cleanlab.object_detection.rank import _get_valid_inputs_for_compute_scores, _separate_prediction, _separate_label, _get_prediction_type
  from cleanlab.internal.object_detection_utils import bbox_xyxy_to_xywh
label_desc: Use image node_id 9 for calling a global function with example usage: _sort_dict_to_list(index_value_dict) and returns: sorted_list