<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_master_secret(class_, master_secret):
 """Generate a Wallet from a master password."""

        I64 = hmac.HMAC(key=b"Bitcoin seed", msg=master_secret, digestmod=hashlib.sha512).digest()
        return class_(chain_code=I64[32:], secret_exponent=from_bytes_32(I64[:32]))