code: def align_weak_strong_shape(data_weak, data_strong):
      shape_x = data_strong["image"].shape[2]
      shape_y = data_strong["image"].shape[3]
  
      target_size = [shape_x, shape_y]
      data_weak["image"] = F.interpolate(
          data_weak["image"],
          size=target_size,
          mode="bilinear",
          align_corners=False,
      )
      return data_weak, data_strong
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from ppdet.core.workspace import register, create, merge_config
  import paddle
  import numpy
  import paddle
  import paddle.nn.functional
  from ppdet.core.workspace import register, create
  from ppdet.utils.logger import setup_logger
  from ppdet.modeling.ssod.utils import filter_invalid
  from .multi_stream_detector import MultiSteamDetector
label_desc: Use image node_id 4 for calling a global function with example usage: align_weak_strong_shape(data_weak, data_strong) and returns: data_weak,  data_strong