human
I wrote the below code

    esp.write_reg(EFUSE_REG_CONF, EFUSE_CONF_WRITE)
    esp.write_reg(EFUSE_REG_CMD, EFUSE_CMD_WRITE)
    def wait_idle():
        deadline = (time.time() + EFUSE_BURN_TIMEOUT)
        while (time.time() < deadline):
            if (esp.read_reg(EFUSE_REG_CMD) == 0):
                return
        raise esptool.FatalError('Timed    out    waiting    for    Efuse    controller    command    to    complete')
    wait_idle()
    esp.write_reg(EFUSE_REG_CONF, EFUSE_CONF_READ)
    esp.write_reg(EFUSE_REG_CMD, EFUSE_CMD_READ)
    wait_idle()

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def efuse_perform_write(esp):