code: def test_tracker_callback():
      import time
  
      tracker = pm.callbacks.Tracker(
          ints=lambda *t: t[-1],
          ints2=lambda ap, h, j: j,
          time=time.time,
      )
      for i in range(10):
          tracker(None, None, i)
      assert "time" in tracker.hist
      assert "ints" in tracker.hist
      assert "ints2" in tracker.hist
      assert (
          len(tracker["ints"])
          == len(tracker["ints2"])
          == len(tracker["time"])
          == 10
      )
      assert tracker["ints"] == tracker["ints2"] == list(range(10))
      tracker = pm.callbacks.Tracker(bad=lambda t: t)  # bad signature
      with pytest.raises(TypeError):
          tracker(None, None, 1)
  
imports: import numpy
  import pytensor
  import pytest
  import pymc
label_desc: Use image node_id 2 for calling a global function with example usage: test_tracker_callback() without return types