Hi,
The python code for that example is located at:
_build/linux-x86_64/release/exts/omni.isaac.samples/omni/isaac/samples/scripts/leonardo_preview.py
The other functions like create_franka() is at:
../scripts/franka_scenarios/simple_stack.py
More info on editing python code here:
https://docs.omniverse.nvidia.com/robotics/text/Robotics_QuickStart.html#editing-python-code