Calling the callback on_before_accelerator_backend_setup gives an error.
I am trying to use this callback with the following code.
from pytorch_lightning.callbacks import Callback
class InitCallback(Callback):


    def on_before_accelerator_backend_setup(trainer, pl_module):

        print(trainer.model)
        print(trainer.global_rank)
        exit()


It gives the following error:
TypeError: on_before_accelerator_backend_setup() takes 2 positional arguments but 3 were given