code: def fr(content_feat, style_feat, alpha):
      content_feat = np.reshape(content_feat, (512, -1))
      style_feat = np.reshape(style_feat, (512, -1))
  
      content_feat_index = np.argsort(content_feat, axis=1)
      style_feat = np.sort(style_feat, axis=1)
  
      fr_feat = scatter_numpy(
          dim=1, index=content_feat_index, src=style_feat
      )
      fr_feat = fr_feat * alpha + content_feat * (1 - alpha)
      fr_feat = np.reshape(fr_feat, (1, 512, 64, 64))
      return fr_feat
  
file_path: PaddleHub/modules/image/Image_gan/style_transfer/stylepro_artistic/processor.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import base64
  import cv2
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: fr(content_feat, style_feat, alpha) and returns: fr_feat