def METHOD_NAME(self, inputs):
    if self.encode_type == "text":
        dataset = [np.array([self.processor(text=text)["input_ids"] for text in inputs], dtype="int64")]
    else:
        dataset = [np.array([self.processor(images=image)["pixel_values"][0] for image in inputs])]
    input_map = {}
    for input_field_id, data in enumerate(dataset):
        input_field = self.runtime.get_input_info(input_field_id).name
        input_map[input_field] = data
    return input_map