code: def traverse(s, op, callback):
      visited = set()
  
      def _traverse(op):
          if op in visited:
              return
          visited.add(op)
          for tensor in op.input_tensors:
              _traverse(tensor.op)
          callback(op)
  
      _traverse(op)
  
imports: import functools
  import sys
  import pytest
  import numpy
  import tvm
  import tvm.testing
  from tvm import te
  from tvm.tir.stmt_functor import post_order_visit
  from tvm.driver.build_module import schedule_to_module
label_desc: Use image node_id 3 for calling a global function with example usage: traverse(s, op, callback) without return types