def METHOD_NAME(name, location, bit, value, tips, err1):
    psu_status = int(get_pmc_register(location), 16)
    val = (psu_status & (1 << bit)) >> bit
    if val != value:
        err1["errmsg"] = tips
        err1["code"] = -1
        return -1
    else:
        err1["errmsg"] = "none"
        err1["code"] = 0
        return 0