def end_trace(
        self,
        trace_id: Optional[str] = None,
        trace_map: Optional[Dict[str, List[str]]] = None,
    ) -> None:
        """Run when an overall trace is exited."""
Run when an overall trace is exited.
llama-index-finetuning/llama_index/finetuning/callbacks/finetuning_handler.py