def METHOD_NAME(self, input_dicts, data_id, log_id):
    # Convert input format
    ((_, input_dict),) = input_dicts.items()
    data = input_dict["inputs"]
    if isinstance(data, str) and "array(" in data:
        data = eval(data)
    else:
        logger.error("input value  {}is not supported.".format(data))
    data = [i.decode("utf-8") for i in data]
    examples = [convert_example(i, self.tokenizer) for i in data]
    input_dict = batchify_fn(examples, self.tokenizer.pad_token_id)
    # the first return must be a dict or a list of dict, the dict corresponding to a batch of model input
    return input_dict, False, None, ""