def METHOD_NAME(channeldbpath):
    # import here to avoid circular imports whenever kolibri.core.content.models imports utils too
    from kolibri.core.content.models import ChannelMetadata
    source = Bridge(sqlite_file_path=channeldbpath)
    ChannelMetadataTable = source.get_table(ChannelMetadata)
    source_channel_metadata = dict(
        source.execute(select(ChannelMetadataTable)).fetchone()
    )
    # Use the inferred version from the SQLAlchemy Bridge object, and set it as additional
    # metadata on the channel data
    source_channel_metadata["inferred_schema_version"] = source.schema_version
    source.end()
    # Adds an attribute `root_id` when `root_id` does not exist to match with
    # the latest schema.
    if "root_id" not in source_channel_metadata:
        source_channel_metadata["root_id"] = source_channel_metadata["root_pk"]
    return source_channel_metadata