class_docstr: Local caller base
class_docstr_tok: ["Local","caller","base"]
code: def gen_inputs(
      self, datas: List["ndarray"], prefix: str
  ) -> List["InferInput"]:
      infers = []
      for i in range(len(datas)):
          name = prefix + str(i)
          infer = client.MockInferInput(
              name,
              datas[i].shape,
              np_to_triton_dtype(type_util.py_to_np_type(datas[i])),
          )
          infer.set_data_from_numpy(datas[i])
          infers.append(infer)
      return infers
  
file_path: towhee/towhee/serve/triton/bls/caller/local_caller.py
imports: from typing import List
  import queue
  from towhee.serve.triton.bls.utils import type_util
  from towhee.serve.triton.bls.mock import mock_triton_client
  from towhee.utils.tritonclient_utils import np_to_triton_dtype
label_desc: Use image node_id 2 for calling the LocalCallerBase obj's underlying member method code with example usage: obj.gen_inputs(datas, prefix) and returns: infers