code: def get_account_by_ont_id(self, ont_id: str, password: str) -> Account:
          
          WalletManager.__check_ont_id(ont_id)
          for identity in self.wallet_in_mem.identities:
              if identity.ont_id == ont_id:
                  addr = identity.ont_id.replace(DID_ONT, "")
                  key = identity.controls[0].key
                  salt = base64.b64decode(identity.controls[0].salt)
                  n = self.wallet_in_mem.scrypt.n
                  private_key = Account.get_gcm_decoded_private_key(key, password, addr, salt, n, self.scheme)
                  return Account(private_key, self.scheme)
          raise SDKException(ErrorCode.other_error(f'Get account {ont_id} failed.'))
docs: :param ont_id: OntId.
          :param password: a password which is used to decrypt the encrypted private key.
          :return: