class_docstr: The InferenceDevice class provides zmq.device to connect with frontend and
  backend.
class_docstr_tok: ["The","InferenceDevice","class","provides","zmq.device","to","connect","with","frontend","and","backend","."]
code: def __init__(self):
      self.frontend = None
      self.backend = None
      filename = "HubServing-%s.log" % time.strftime(
          "%Y_%m_%d", time.localtime()
      )
      self.logger = log.get_file_logger(filename)
  
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 InferenceDevice object from inherited base classes: object with example: obj = InferenceDevice()