code: def restore_params(network, path="models"):
      logging.info("Restore pre-trained parameters")
      maybe_download_and_extract(
          "mobilenet.npz",
          path,
          "https://github.com/tensorlayer/pretrained-models/raw/master/models/",
          expected_bytes=25600116,
      )  # ls -al
      params = load_npz(name=os.path.join(path, "mobilenet.npz"))
      # for idx, net_weight in enumerate(network.all_weights):
      #     if 'batchnorm' in net_weight.name:
      #         params[idx] = params[idx].reshape(1, 1, 1, -1)
      assign_weights(params[: len(network.all_weights)], network)
      del params
  
file_path: TensorLayer/tensorlayer/models/mobilenetv1.py
imports: import os
  import tensorflow
  from tensorlayer import logging
  from tensorlayer.files import assign_weights, load_npz, maybe_download_and_extract
  from tensorlayer.layers import BatchNorm, Conv2d, DepthwiseConv2d, Flatten, GlobalMeanPool2d, Input, Reshape
  from tensorlayer.models import Model
label_desc: Use image node_id 3 for calling a global function with example usage: restore_params(network, path) without return types