code: def test_depth_first_search(depth):
      """
      For graphs without blocks, depth should not make any difference.
      """
      d = _simple_dict()
  
      found = C.logging.graph.depth_first_search(
          d["all"], lambda x: True, depth=depth
      )
      found_names = [v.name for v in found]
      assert found_names == [
          "all",
          "op2",
          "op1",
          "i1",
          "c1",
          "p1",
          "minus",
          "label",
          "c2",
      ]
  
file_path: CNTK/bindings/python/cntk/logging/tests/graph_test.py
imports: import numpy
  import pytest
  import cntk
  from cntk.axis import Axis
label_desc: Use image node_id 6 for calling a global function with example usage: test_depth_first_search(depth) without return types