def get_invalid_model_def_path_message() ->str:
    """
    get_invalid_model_def_path_message is used by get_all_file_entries to generate an appropriate
    error message to display when a user tries to create an experiment using a model definition
    contained in a directory whose name conflicts with the Determined package name
    (i.e. "determined").

    The function is also used in test_cli.py::test_create_reject_bad_path.
    """
    return (
        'A model definition cannot be contained in a directory named "determined"'
        )
