How to use Python scripts to call the MakeCorner function

Hello, may I ask how to use Python scripts to call the MakeCorner function. Screenshot of the following functions:
image

The path object has a method:

path.makeCornerFirstNodeIndex_endNodeIndex_(firstNodeIdx, endNodeIdx)

Thank you for your reply. Can you give an example for parameter input

I am using glyphs2, is that how I operate it

It is not available in Glyphs 2.