code: def test_thread():
      assert 10 == util.thread(3, _square, _add_one)
      assert 100 == util.thread(3, _square, _add_one, _square)  # 4
      assert 82 == util.thread(3, _square, _square, _add_one)  # 4
      assert 10 == util.thread(3, lambda x: x * x, lambda x: x + 1)
      assert 100 == util.thread(
          3, lambda x: x * x, lambda x: x + 1, lambda x: x * x
      )
      assert 82 == util.thread(
          3, lambda x: x * x, lambda x: x * x, lambda x: x + 1
      )
  
imports: import numpy
  from impyute.ops import matrix
  from impyute.ops import util
label_desc: Use image node_id 3 for calling a global function with example usage: test_thread() without return types