Hmm. I can see why this would be useful, but I'm not sure how I would do it because ML doesn't know in advance what your custom item is doing or what kind of data you are expecting.