class_docstr: Base class for alpaca prompters
class_docstr_tok: ["Base","class","for","alpaca","prompters"]
code: def _build_result(self, instruction, input_text, output):
      # returns the full prompt from instruction and optional input
      # if a label (=response, =output) is provided, it's also appended.
      if input_text:
          res = (
              self.system_format.format(system=self.system_prompt)
              if self.system_prompt
              else ""
          ) + self.turn_format.format(
              instruction=instruction, input=input_text
          )
      else:
          res = (
              self.system_format.format(
                  system=self.system_no_input_prompt
              )
              if self.system_no_input_prompt
              else ""
          ) + self.turn_no_input_format.format(instruction=instruction)
      if output:
          res = f"{res}{output}"
  
      return res
  
imports: import logging
  from enum import Enum
  from typing import Generator, Optional, Union
  from colorama import Fore
  from fastchat.conversation import Conversation, get_conv_template
label_desc: Use image node_id 3 for calling the AlpacaPrompter obj's underlying member method code with example usage: obj._build_result(instruction, input_text, output) and returns: res