Radiomics cli parameters

I am trying to do batch processing to extract radiomic features using the radiomicscli module. The error are:

[VTK] No input data assigned to “input Source Image”

[VTK] No input data assigned to “input Source Image”

[VTK] No input data assigned to “input Source Image”

[VTK] No input data assigned to “input Source Image”

Below is the code to run the cli module. could anyone please help me in this regard. did i define the correct params for the radiomics cli module.

apt_data = slicer.util.loadVolume(startPatientDirPath+“/T1c.nii.gz”)

        #segmentation of the tumour loaded as volume and then converted to segmnetation node
        seg = slicer.util.loadSegmentation(startPatientDirPath+"/outputFinal/transSimple-label.nrrd")
        #seg = slicer.mrmlScene.AddNewNodeByClass("vtkMRMLSegmentationNode")
        #slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNode(labelmapVolumeNode, seg)
        params = {}
        params["image"] = slicer.util.getNode(apt_data.GetID())
        params["mask"] = slicer.util.getNode(seg.GetID())
        params["out"] = slicer.mrmlScene.AddNewNodeByClass("vtkMRMLTableNode")
        for i in range(1,4):
            if i == 3:
            params["label"] = i
            cliModule = slicer.modules.slicerradiomicscli
            cliNode = slicer.cli.runSync(cliModule, None, params)

i found the problem was with the params. It is
params[“Image”] = slicer.util.getNode(apt_data.GetID())
params[“Mask”] = slicer.util.getNode(seg.GetID())

Now i am having problem figuring out the table node. I want only one table and all the features extracted in one table in different rows. Also I wanted to add a column in table which specifies the label from which it is extracting the features and the patient ID.

Any help?

thank you so much.