code: def check_shape(shape, args):
      assert args.resize_height == 0 or shape[2] == args.resize_height
      assert args.resize_width == 0 or shape[3] == args.resize_width
  
imports: import argparse
  import codecs
  import os
  import time
  import yaml
  import numpy
  import paddle
  import paddle.nn.functional
  from paddle.inference import create_predictor
  from paddle.inference import Config
  from paddleseg.deploy.infer import DeployConfig
  from paddleseg.cvlibs import manager
  from paddleseg.utils import logger, metrics, progbar
  from infer import auto_tune, use_auto_tune, Predictor
label_desc: Use image node_id 3 for calling a global function with example usage: check_shape(shape, args) without return types