def METHOD_NAME(root, upgrader, biosample_characterization, biosample_characterization_4, publication, threadlocals, dummy_request):
    context = root.get_by_uuid(biosample_characterization['uuid'])
    dummy_request.context = context
    value = upgrader.upgrade('biosample_characterization', biosample_characterization_4,
                             target_version='5', context=context)
    assert value['schema_version'] == '5'
    assert value['references'] == [publication['uuid']]