def METHOD_NAME(self, inputs, outputs, targets=None):
    if len(self.transcript) > 5e4:
        return
    if isinstance(inputs, list):
        if targets is None:
            targets = (None,) * len(outputs)
        for input, output, target in zip(inputs, outputs, targets):
            self.METHOD_NAME(input, output, target)
        return
    elif not isinstance(inputs, str):
        raise ValueError("inputs has unexpected type %s" % type(inputs))
    inputs = format_quote(inputs)
    self.transcript += f"\n\n### Prompt:\n{inputs}"
    if isinstance(outputs, str):
        out_str = format_quote(outputs)
    else:
        out_str = f"""