code: def assign_adain_params(adain_params, model):
      for m in model.modules():
          if m.__class__.__name__ == "AdaptiveInstanceNorm2d":
              mean = adain_params[:, : m.num_features]
              std = adain_params[:, m.num_features : 2 * m.num_features]
              m.bias = mean.contiguous().view(-1)
              m.weight = std.contiguous().view(-1)
              if adain_params.size(1) > 2 * m.num_features:
                  adain_params = adain_params[:, 2 * m.num_features :]
  
file_path: insightface/recognition/idmmd/utils.py
imports: import os
  import numpy
  import torch
  import torch.nn.functional
label_desc: Use image node_id 9 for calling a global function with example usage: assign_adain_params(adain_params, model) without return types