def METHOD_NAME(gi,name):
    from generic import obj
    sr = obj(get_serial_references()[name])
    sg = gi.serial()
    same = object_eq(sg,sr)
    if not same:
        print('\n'+name+' differs')
        testing.print_diff(sr,sg)
    #end if
    assert(same)