docstr: Run as a service.
docstr_tok: ["Run","as","a","service","."]
code: def serving_method(self, images, **kwargs):
      """
      Run as a service.
      """
      images_decode = copy.deepcopy(images)
      for image in images_decode:
          image["image1"] = base64_to_cv2(image["image1"])
          image["image2"] = base64_to_cv2(image["image2"])
      results = self.generate(images_decode, **kwargs)
      tolist = [result.tolist() for result in results]
      return tolist
  
file_path: PaddleHub/modules/image/Image_gan/gan/styleganv2_mixing/module.py
imports: import os
  import argparse
  import copy
  import paddle
  import paddlehub
  from paddlehub.module.module import moduleinfo, runnable, serving
  import numpy
  import cv2
  from skimage.io import imread
  from skimage.transform import rescale, resize
  from .model import StyleGANv2MixingPredictor
  from .util import base64_to_cv2
label_desc: Use image node_id 4 for calling the styleganv2_mixing obj's underlying member method code with example usage: obj.serving_method(images) and returns: tolist