def METHOD_NAME():
    with mocked_scope() as scope:
        pio.to_image(
            fig,
            format="pdf",
            width=700,
            height=600,
            scale=2,
            engine="kaleido",
            validate=False,
        )
    scope.transform.assert_called_with(
        fig, format="pdf", width=700, height=600, scale=2
    )