def METHOD_NAME():
    q = object_state_tbl.METHOD_NAME(
        whereclause=((object_state_tbl.c.objectid == objectid)
                     & (object_state_tbl.c.name == name)))
    res = conn.execute(q, value_json=value_json)
    # check whether that worked
    return res.rowcount > 0