code: def _save_data(self, data, key, value):
      if key in data.keys() and isinstance(data[key], MetaTensor):
          data[key].array = value
      else:
          data[key] = value
  
      return data
  
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 3 for calling the InteractiveSegmentationTransform obj's underlying member method code with example usage: obj._save_data(data, key, value) and returns: data