docstr: Run as a service.
docstr_tok: ["Run","as","a","service","."]
code: def serving_method(self, images, **kwargs):
      """
      Run as a service.
      """
      images_decode = [base64_to_cv2(image) for image in images]
      results = self.predict(images_decode, **kwargs)
      return results
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import sys
  import copy
  import time
  import paddlehub
  from paddlehub.common.logger import logger
  from paddlehub.module.module import moduleinfo, runnable, serving
  import cv2
  import paddlehub
  from tools.infer.utility import base64_to_cv2
  from ppstructure.layout.predict_layout import LayoutPredictor
  from ppstructure.utility import parse_args
  from deploy.hubserving.structure_layout.params import read_params
label_desc: Use image node_id 5 for calling the LayoutPredictor obj's underlying member method code with example usage: obj.serving_method(images) and returns: results