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

This new method is used to define functions in the Pig classpath. It requires a third argument, compare to the existing method.