code: def transfer(model, model_weights):
      transfered_model_weights = {}
      for weights_name in model.state_dict().keys():
          transfered_model_weights[weights_name] = model_weights[
              ".".join(weights_name.split(".")[1:])
          ]
      return transfered_model_weights
  
file_path: carefree-learn/cflearn/api/cv/third_party/openpose/util.py
imports: import math
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: transfer(model, model_weights) and returns: transfered_model_weights