code: def test_string_ordering_dependents():
      """Prefer ordering tasks by name first even when in dependencies."""
      dsk = {
          ("a", 1): (f, "b"),
          ("a", 2): (f, "b"),
          ("a", 3): (f, "b"),
          "b": (f,),
      }
      o = order(dsk)
      assert o == {"b": 0, ("a", 1): 1, ("a", 2): 2, ("a", 3): 3}
  
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 20 for calling a global function with example usage: test_string_ordering_dependents() without return types