so this feature is not very intuitively designed but here is a sample hidden somewhere:
https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-995d634e-a8ef-4f2b-a826-1d32171f4998
#################### steep and shallow operations ####################
# Create folder for finishing operations that require Machining Extension
operationInput = setup.operations.createInput('folder')
operationInput.displayName = 'Machining Extension Required'
folder: adsk.cam.CAMFolder = setup.operations.add(operationInput)