code: def load_pretrain_clip(pretrained_model):
      from urllib.parse import urlparse
      from paddleseg.utils import download_pretrained_model
  
      if urlparse(pretrained_model).netloc:
          pretrained_model = download_pretrained_model(pretrained_model)
      state = paddle.load(pretrained_model)
      return state
  
imports: from collections import OrderedDict
  from typing import Tuple, Union
  import numpy
  import paddle
  from paddle.nn.initializer import Constant
  from paddle.vision.transforms import Compose, Resize, CenterCrop, ToTensor, Normalize
label_desc: Use image node_id 2 for calling a global function with example usage: load_pretrain_clip(pretrained_model) and returns: state