Insert Python code within a Knime python node

Job ID: 36751332

Budget: $10 – $30 USD

I need the Python code detailed in the link below to be inserted within a Python script node (python snipet or better performing node) in Knime in order to function properly.
The output of the project should be a Knime (v5) workflow which would take a .txt file with OHLC data as input and produce a Knime table with both OHLC and ZigZag data (pivot nature and value).
https://python.stockindicators.dev/indicators/ZigZag/
Related categories: Python KNIME