code: def test_break_ties_by_str(abcde):
      a, b, c, d, e = abcde
      dsk = {("x", i): (inc, i) for i in range(10)}
      x_keys = sorted(dsk)
      dsk["y"] = list(x_keys)
  
      o = order(dsk)
      expected = {"y": 10}
      expected.update({k: i for i, k in enumerate(x_keys)})
  
      assert o == expected
  
imports: import pytest
  from flash.core.serve.dag.order import ndependencies, order
  from flash.core.serve.dag.task import get, get_deps
  from flash.core.serve.dag.utils_test import add, inc
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 12 for calling a global function with example usage: test_break_ties_by_str(abcde) without return types