def METHOD_NAME(salt_master):
    with salt.utils.event.get_event(
        "master",
        opts=salt_master.config.copy(),
        sock_dir=salt_master.config["sock_dir"],
        listen=True,
        raise_errors=True,
    ) as event:
        yield event