Remove the Execute Context pin from your function input/output list and it will automatically be treated as a Pure Function.