code: def adaptive_instance_normalization(content_feat, style_feat):
      """Adaptive instance normalization.
  
      Adjust the reference features to have the similar color and illuminations
      as those in the degradate features.
  
      Args:
          content_feat (Tensor): The reference feature.
          style_feat (Tensor): The degradate features.
      """
      size = content_feat.size()
      style_mean, style_std = calc_mean_std(style_feat)
      content_mean, content_std = calc_mean_std(content_feat)
      normalized_feat = (
          content_feat - content_mean.expand(size)
      ) / content_std.expand(size)
      return normalized_feat * style_std.expand(
          size
      ) + style_mean.expand(size)
  
imports: import math
  import torch
  from torch import nn, Tensor
  import torch.nn.functional
  from typing import Optional
  from modules.codeformer.vqgan_arch import VQAutoEncoder, ResBlock
  from basicsr.utils.registry import ARCH_REGISTRY
label_desc: Use image node_id 2 for calling a global function with example usage: adaptive_instance_normalization(content_feat, style_feat) and returns: unknown