def METHOD_NAME(tmp_path, modules, state_tree, caplog):
    venv_dir = tmp_path / "issue-2028-pip-installed"
    sls_contents = dedent(
        """
    test_foo:
      test.succeed_with_changes
    run_new:
      module.wait:
        - test.random_hash:
          - size: 10
          - hash_type: md5
        - watch:
          - test: test_foo
    """
    )
    with pytest.helpers.temp_file("issue-62988.sls", sls_contents, state_tree):
        with caplog.at_level(logging.DEBUG):
            ret = modules.state.sls(
                mods="issue-62988",
            )
            assert len(ret.raw) == 2
            for k in ret.raw:
                assert ret.raw[k]["result"] is True
            assert "Using new style module.run syntax: run_new" in caplog.messages