def METHOD_NAME(self, reg_name, value):
    # On successful write, returns the value will be written on
    # reg_name and on failure returns 'ERR'
    cpld_dir = "/sys/devices/platform/dell-n3248te-cpld.0/"
    cpld_reg_file = cpld_dir + '/' + reg_name
    try:
       with open(cpld_reg_file, 'w') as fd:
            rv = fd.write(str(value))
    except Exception:
        rv = 'ERR'
    return rv