code: def load_entire_model(model, pretrained):
      if pretrained is not None:
          load_pretrained_model(model, pretrained)
      else:
          logger.warning(
              "Not all pretrained params of {} are loaded, "
              "training from scratch or a pretrained backbone.".format(
                  model.__class__.__name__
              )
          )
  
imports: import os
  import json
  import random
  import tempfile
  import filelock
  import contextlib
  import numpy
  import SimpleITK
  from collections.abc import Iterable
  from urllib.parse import urlparse, unquote
  from functools import partial, update_wrapper
  import paddle
  from medicalseg.utils import logger, seg_env
  from medicalseg.utils.download import download_file_and_uncompress
label_desc: Use image node_id 2 for calling a global function with example usage: load_entire_model(model, pretrained) without return types