code: def test_correct_sorting(order_bys, matching_runs):
      runs = [
          Run(
              run_info=RunInfo(
                  run_uuid="9",
                  run_id="9",
                  experiment_id=0,
                  user_id="user-id",
                  status=RunStatus.to_string(RunStatus.FAILED),
                  start_time=0,
                  end_time=1,
                  lifecycle_stage=LifecycleStage.ACTIVE,
              ),
              run_data=RunData(
                  metrics=[Metric("key1", 121, 1, 0)],
                  params=[Param("my_param", "A")],
                  tags=[],
              ),
          ),
          Run(
              run_info=RunInfo(
                  run_uuid="8",
                  run_id="8",
                  experiment_id=0,
                  user_id="user-id",
                  status=RunStatus.to_string(RunStatus.FINISHED),
                  start_time=1,
                  end_time=1,
                  lifecycle_stage=LifecycleStage.ACTIVE,
              ),
              run_data=RunData(
                  metrics=[Metric("key1", 123, 1, 0)],
                  params=[Param("my_param", "A")],
                  tags=[RunTag("tag1", "C")],
              ),
          ),
          Run(
              run_info=RunInfo(
                  run_uuid="7",
                  run_id="7",
                  experiment_id=1,
                  user_id="user-id",
                  status=RunStatus.to_string(RunStatus.FAILED),
                  start_time=1,
                  end_time=1,
                  lifecycle_stage=LifecycleStage.ACTIVE,
              ),
              run_data=RunData(
                  metrics=[Metric("key1", 125, 1, 0)],
                  params=[Param("my_param", "B")],
                  tags=[RunTag("tag1", "D")],
              ),
          ),
      ]
      sorted_runs = SearchUtils.sort(runs, order_bys)
      sorted_run_indices = []
      for run in sorted_runs:
          for i, r in enumerate(runs):
              if r == run:
                  sorted_run_indices.append(i)
                  break
      assert sorted_run_indices == matching_runs
  
imports: import base64
  import json
  import re
  import pytest
  from mlflow.entities import Dataset, DatasetInput, InputTag, LifecycleStage, Metric, Param, Run, RunData, RunInfo, RunInputs, RunStatus, RunTag
  from mlflow.exceptions import MlflowException
  from mlflow.utils.mlflow_tags import MLFLOW_DATASET_CONTEXT
  from mlflow.utils.search_utils import SearchUtils
label_desc: Use image node_id 12 for calling a global function with example usage: test_correct_sorting(order_bys, matching_runs) without return types