class_docstr: MockInferenceResponse.
class_docstr_tok: ["MockInferenceResponse","."]
code: def exec(self):
      try:
          inputs = [tensor.as_numpy() for tensor in self._tensors]
          outputs = self._model(*inputs)
          if len(self._requested_output_names) == 1:
              outputs = [outputs]
          res = [
              MockTritonPythonBackendUtils.Tensor(name, arr)
              for name, arr in zip(
                  self._requested_output_names, outputs
              )
          ]
          return MockTritonPythonBackendUtils.InferenceResponse(res)
      except Exception as e:
          return MockTritonPythonBackendUtils.InferenceResponse(
              None, MockTritonPythonBackendUtils.TritonError(e.message)
          )
  
imports: from typing import List, Any
label_desc: Use image node_id 4 for calling the _MockInferenceRequest obj's underlying member method code with example usage: obj.exec() and returns: MockTritonPythonBackendUtils, MockTritonPythonBackendUtils