class_docstr: Defines a generic Scribbles Likelihood based segmentor infertask
class_docstr_tok: ["Defines","a","generic","Scribbles","Likelihood","based","segmentor","infertask"]
code: def post_transforms(self, data):
      return [
          # unary term maker
          MakeISegUnaryd(
              image="image",
              logits="prob",
              scribbles="label",
              unary="unary",
              scribbles_bg_label=self.scribbles_bg_label,
              scribbles_fg_label=self.scribbles_fg_label,
          ),
          # optimiser
          ApplyGraphCutOptimisationd(
              unary="unary",
              pairwise="image",
              post_proc_label="pred",
              lamda=self.lamda,
              sigma=self.sigma,
          ),
          Restored(keys="pred", ref_image="image"),
          BoundingBoxd(keys="pred", result="result", bbox="bbox"),
      ]
  
file_path: MONAILabel/monailabel/scribbles/infer.py
imports: from monai.transforms import Compose, EnsureChannelFirstd, LoadImaged, ScaleIntensityRanged, Spacingd
  from monailabel.interfaces.tasks.infer_v2 import InferType
  from monailabel.scribbles.transforms import AddBackgroundScribblesFromROId, ApplyGraphCutOptimisationd, MakeISegUnaryd, MakeLikelihoodFromScribblesGMMd, MakeLikelihoodFromScribblesHistogramd
  from monailabel.tasks.infer.basic_infer import BasicInferTask
  from monailabel.transform.post import BoundingBoxd, Restored
label_desc: Use image node_id 4 for calling the ScribblesLikelihoodInferTask obj's underlying member method code with example usage: obj.post_transforms(data) and returns: list