src/transformers/integrations/integration_utils.py/CodeCarbonCallback/on_init_end
class CodeCarbonCallback:    def on_init_end(self, args, state, control, **kwargs):
        if self.tracker is None and state.is_local_process_zero:
            # CodeCarbon will automatically handle environment variables for configuration
            self.tracker = self._codecarbon.EmissionsTracker(output_dir=args.output_dir)