code: def test_find_nodes():
      d = _graph_dict()
      graph_uids = []
  
      for name in ["i1", "c1", "p1", "op1", "op2", "past"]:
          n = C.logging.graph.find_all_with_name(d["root"], name)
          assert len(n) == 1, name
          assert n[0].name == name, name
  
          n = d["root"].find_all_with_name(name)
          assert len(n) == 1, name
          assert n[0].name == name, name
  
          n = C.logging.graph.find_by_name(d["root"], name)
          assert n.name == name, name
          assert n != None
  
          graph_uids.append(n.uid)
  
          n = d["root"].find_by_name(name)
          assert n.name == name, name
  
          for uid in graph_uids:
              n2 = C.logging.graph.find_by_uid(d["root"], uid)
              assert n2.uid == uid, uid
              assert n2 != None
  
      n = C.logging.graph.find_all_with_name(d["root"], "op3")
      assert len(n) == 2, "op3"
      assert n[0].name == "op3" and n[1].name == "op3", "op3"
  
      none = C.logging.graph.find_all_with_name(d["root"], "none")
      assert none == []
  
      assert C.logging.graph.find_by_name(d["root"], "none") is None
  
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 3 for calling a global function with example usage: test_find_nodes() without return types