code: def _set_scribbles_idx_from_labelinfo(self, d):
      label_info = d.get("label_info", [])
      for lb in label_info:
          if lb.get("name", None) == "background_scribbles":
              id = lb.get("id", self.scribbles_bg_label)
              self.scribbles_bg_label = id
              logging.info(
                  "Loading background scribbles labels from: {} with index: {}".format(
                      lb.get("name"), id
                  )
              )
  
          if lb.get("name", None) == "foreground_scribbles":
              id = lb.get("id", self.scribbles_fg_label)
              self.scribbles_fg_label = id
              logging.info(
                  "Loading foreground scribbles labels from: {} with index: {}".format(
                      lb.get("name"), id
                  )
              )
  
imports: import logging
  from copy import deepcopy
  from typing import Optional
  import numpy
  import torch
  from monai.data import MetaTensor
  from monai.networks.blocks import CRF
  from monai.transforms import Transform
  from scipy.special import softmax
  from .utils import make_iseg_unary, make_likelihood_image_gmm, make_likelihood_image_histogram, maxflow
label_desc: Use image node_id 6 for calling the InteractiveSegmentationTransform obj's underlying member method code with example usage: obj._set_scribbles_idx_from_labelinfo(d) without return types