TBD-895: Add a method in the PigHelper to define functions