def METHOD_NAME(topic_path: str, capsys: CaptureFixture[str]) -> None:
    iam.check_topic_permissions(PROJECT_ID, TOPIC_ID)
    out, _ = capsys.readouterr()
    assert topic_path in out
    assert "pubsub.topics.publish" in out