class_docstr: Base speedup class for backend engine
class_docstr_tok: ["Base","speedup","class","for","backend","engine"]
docstr: This function should be overrided by subclass to provide inference ability,
  which should return output and inference time.
  
  Parameters
  ----------
  test_data : numpy data
      test data given to the inference engine
  
  Returns
  -------
  numpy data
      output data will be generated after inference
  float
      latency of such inference process
docstr_tok: ["This","function","should","be","overrided","by","subclass","to","provide","inference","ability",",","which","should","return","output","and","inference","time",".","Parameters","--","--","--","--","--","test_data",":","numpy","data","test","data","given","to","the","inference","engine","Returns","--","--","--","-","numpy","data","output","data","will","be","generated","after","inference","float","latency","of","such","inference","process"]
code: def inference(self, test_data):
      """
      This function should be overrided by subclass to provide inference ability,
      which should return output and inference time.
  
      Parameters
      ----------
      test_data : numpy data
          test data given to the inference engine
  
      Returns
      -------
      numpy data
          output data will be generated after inference
      float
          latency of such inference process
      """
      raise NotImplementedError(
          "Backend engine must overload inference()"
      )
  
label_desc: Use image node_id 2 for calling the BaseModelSpeedup obj's underlying member method code with example usage: obj.inference(test_data) without return types