Hey @dzorlu,
thank you for finding the bug, please let me know if you not manage to open PR, then I would take care of it.
Maybe @dan21c can tell more about the transform_fn and where is stored?
context.metrics.add_time("Transform Fn", round((predict_end - predict_start) * 1000, 2))