def METHOD_NAME(
    asset_materialization: AssetMaterialization, metadata_key="io_manager_branch"
) -> Optional[str]:
    entry = asset_materialization.metadata.get(metadata_key)
    if isinstance(entry, TextMetadataValue):
        return entry.value
    else:
        return None