def METHOD_NAME(self, mocker, fake_metadata):
    Module = namedtuple("Module", ["cli"])
    mocker.patch(
        "kedro.framework.cli.cli._is_project",
        return_value=True,
    )
    mocker.patch(
        "kedro.framework.cli.cli.bootstrap_project",
        return_value=fake_metadata,
    )
    mocker.patch(
        "kedro.framework.cli.cli.importlib.import_module",
        return_value=Module(cli=cli),
    )
    kedro_cli = KedroCLI(fake_metadata.project_path)
    raw_cli_structure = get_cli_structure(kedro_cli, get_help=False)
    # raw CLI structure tests
    assert isinstance(raw_cli_structure, dict)
    assert isinstance(raw_cli_structure["kedro"], dict)
    for k, v in raw_cli_structure["kedro"].items():
        assert isinstance(k, str)
        assert isinstance(v, dict)
    assert sorted(list(raw_cli_structure["kedro"])) == sorted(
        DEFAULT_KEDRO_COMMANDS
    )