# Implement the prompt-formatting function def format_input(entry): instruction_text = ( f"below is an instruction that describes the task. " f"Write a response that appropriately completes the request." f"\n\n### Instruction:\n{entry['instruction']}" ) input_text = ( f"\n\n### Input:\n{entry['input']}" if entry["input"] else "" ) return instruction_text + input_text model_input = format_input(data[50]) desired_output = f"\n\n### Response: \n{data[50]['output']}" print(model_input + desired_output) __ __