code: def restore_params(network, model_path="models.npz"):
      logging.info("Restore pre-trained weights")
  
      try:
          npz = np.load(model_path, allow_pickle=True)
      except:
          print("Download the model file, placed in the /model ")
          print(
              "Weights download: ",
              weights_url["link"],
              "password:",
              weights_url["password"],
          )
  
      txt_path = "model/yolov4_weights_config.txt"
      f = open(txt_path, "r")
      line = f.readlines()
      for i in range(len(line)):
          network.all_weights[i].assign(npz[line[i].strip()])
          logging.info(
              "  Loading weights %s in %s"
              % (
                  network.all_weights[i].shape,
                  network.all_weights[i].name,
              )
          )
  
file_path: TensorLayer/tensorlayer/app/computer_vision_object_detection/yolov4.py
imports: import tensorflow
  import numpy
  import tensorlayer
  from tensorlayer.activation import mish
  from tensorlayer.layers import Conv2d, MaxPool2d, BatchNorm2d, ZeroPad2d, UpSampling2d, Concat, Input, Elementwise
  from tensorlayer.models import Model
  from tensorlayer import logging
label_desc: Use image node_id 6 for calling a global function with example usage: restore_params(network, model_path) without return types