How to create a custom blueprint node ,which can auto recognize the output type according to input calss

How to create a custom blueprint node ,which can auto recognize the output type according to input calss
for example , blueprint node SpawnActor

46995-ue4bp.jpg