class_docstr: InferenceServer class starts zmq.rep as backend.
  
  Args:
      modules_name(list): modules name
      gpus(list): GPU devices index
class_docstr_tok: ["InferenceServer","class","starts","zmq.rep","as","backend",".","Args",":","modules_name","(","list",")",":","modules","name","gpus","(","list",")",":","GPU","devices","index"]
code: def __init__(self, modules_info: dict, gpus: list):
      self.modules_info = modules_info
      self.gpus = gpus
  
file_path: PaddleHub/paddlehub/serving/device.py
imports: import zmq
  import time
  import os
  import json
  import platform
  import traceback
  import subprocess
  from paddlehub.utils import log
  from paddlehub.utils.utils import is_port_occupied
label_desc: Use image node_id 1 to create a new InferenceServer object from inherited base classes: object with example: obj = InferenceServer(modules_info, gpus)