def METHOD_NAME(self, data: bytes) -> Any:
    """Encrypt data using the current session and its partition.
    Args:
        data: A bytes object containing the data to be encrypted.
    Returns:
        An appencryption_pb2.DataRowRecord containing the encrypted data,
        as well as its encrypted key and metadata.
    """
    req = appencryption_pb2.SessionRequest()
    req.METHOD_NAME.data = data
    resp = self._send_receive(req)
    return resp.encrypt_response.data_row_record