def METHOD_NAME(
    self,
    file_util: MagicMock,
    load_setuptools_entrypoints: MagicMock,
):
    """
    This test simulates a scenario where a user imports a library that
    has a clash with vdk internal imports. The desired behaviour is to
    terminate with user error.
    """
    with patch("sys.exit") as patched_exit:
        main()
        file_util.assert_called_once()
        assert '"status": "User error"' in str(file_util.call_args)
        # Checking that the execution flow of the test was correct. The
        # original error is the side effect of load_setuptools_entrypoints.
        load_setuptools_entrypoints.assert_called_once()
        # Testing exit status code.
        patched_exit.assert_called_once_with(1)