def METHOD_NAME():
    with DefinitionsRunner.ephemeral(
        Definitions(
            assets=[now_time],
            resources={
                "io_manager": BranchingIOManager(
                    parent_io_manager=AssetBasedInMemoryIOManager(),
                    branch_io_manager=AssetBasedInMemoryIOManager(),
                    branch_metadata_key="another_key",
                ),
            },
        ),
    ) as staging_runner:
        assert staging_runner.materialize_all_assets()
        all_mat_log_records = staging_runner.get_all_asset_materialization_event_records("now_time")
        assert all_mat_log_records
        assert len(all_mat_log_records) == 1
        asset_mat = all_mat_log_records[0].event_log_entry.asset_materialization
        assert asset_mat
        assert get_branch_name_from_materialization(asset_mat, metadata_key="another_key") == "dev"