Ignition scripts embedded in ignition-sdk-examples/scripting-function

We are exploring the development of custom sdk modules and wonder if it is possible to use embedded Ignition scripts (such as Tag History scripts - Python) in a new sdk module. How can this be done?