def METHOD_NAME(
    self
) -> None:
    """Tests the _trusted_commit() method."""
    # SubtopicPage is created but not committed/saved.
    subtopic_page = subtopic_models.SubtopicPageModel(
        id=self.SUBTOPIC_PAGE_ID,
        topic_id='topic_id',
        page_contents={},
        page_contents_schema_version=(
            feconf.CURRENT_SUBTOPIC_PAGE_CONTENTS_SCHEMA_VERSION),
        language_code='en'
    )
    # We check that subtopic page has not been saved before calling
    # commit().
    self.assertIsNone(
        subtopic_models.SubtopicPageModel.get(
            entity_id=self.SUBTOPIC_PAGE_ID,
            strict=False
        )
    )
    # We call commit() expecting that _trusted_commit works fine
    # and saves subtopic page to datastore.
    subtopic_page.commit(
        committer_id=feconf.SYSTEM_COMMITTER_ID,
        commit_message='Created new topic',
        commit_cmds=[{'cmd': topic_domain.CMD_CREATE_NEW}]
    )
    # Now we check that subtopic page is not None and that actually
    # now subtopic page exists, that means that commit() worked fine.
    self.assertIsNotNone(
        subtopic_models.SubtopicPageModel.get(
            entity_id=self.SUBTOPIC_PAGE_ID,
            strict=False
        )
    )