code: def transform(self, image_nd, clicks_lists):
      assert image_nd.shape[0] == 1 and len(clicks_lists) == 1
      self.image_changed = False
  
      clicks_list = clicks_lists[0]
      if len(clicks_list) <= self.skip_clicks:
          return image_nd, clicks_lists
  
      self._input_image_shape = image_nd.shape
  
      current_object_roi = None
      if self._prev_probs is not None:
          current_pred_mask = (self._prev_probs > self.prob_thresh)[
              0, 0
          ]
          if current_pred_mask.sum() > 0:
              current_object_roi = get_object_roi(
                  current_pred_mask,
                  clicks_list,
                  self.expansion_ratio,
                  self.min_crop_size,
              )
  
      if current_object_roi is None:
          if self.skip_clicks >= 0:
              return image_nd, clicks_lists
          else:
              current_object_roi = (
                  0,
                  image_nd.shape[2] - 1,
                  0,
                  image_nd.shape[3] - 1,
              )
  
      update_object_roi = False
      if self._object_roi is None:
          update_object_roi = True
      elif not check_object_roi(self._object_roi, clicks_list):
          update_object_roi = True
      elif (
          get_bbox_iou(current_object_roi, self._object_roi)
          < self.recompute_thresh_iou
      ):
          update_object_roi = True
  
      if update_object_roi:
          self._object_roi = current_object_roi
          self.image_changed = True
      self._roi_image = get_roi_image_nd(
          image_nd, self._object_roi, self.target_size
      )
  
      tclicks_lists = [self._transform_clicks(clicks_list)]
      return self._roi_image, tclicks_lists
  
file_path: PaddleSeg/EISeg/eiseg/inference/transforms/zoom_in.py
imports: import paddle
  import numpy
  from inference.clicker import Click
  from util.misc import get_bbox_iou, get_bbox_from_mask, expand_bbox, clamp_bbox
  from .base import BaseTransform
label_desc: Use image node_id 2 for calling the ZoomIn obj's underlying member method code with example usage: obj.transform(image_nd, clicks_lists) and returns: self,  tclicks_lists, image_nd,  clicks_lists, image_nd,  clicks_lists