src/transformers/integrations.py/CodeCarbonCallback/__init__
class CodeCarbonCallback:    def __init__(self):
        assert (
            is_codecarbon_available()
        ), "CodeCarbonCallback requires `codecarbon` to be installed. Run `pip install codecarbon`."
        import codecarbon

        self._codecarbon = codecarbon
        self.tracker = None