Get images for expressions
        Args:
            retina_name, str: The retina name (required)
            body, ExpressionOperation: The JSON encoded expression to be evaluated (required)
            image_scalar, int: The scale of the image (optional) (optional)
            plot_shape, str: The image shape (optional) (optional)
            image_encoding, str: The encoding of the returned image (optional)
            sparsity, float: Sparsify the resulting expression to this percentage (optional)
            Returns: java.io.ByteArrayInputStream

def getImageForExpression(self, retina_name, body, image_scalar=2, plot_shape="circle", image_encoding="base64/png", sparsity=1.0):
        """Get images for expressions
        Args:
            retina_name, str: The retina name (required)
            body, ExpressionOperation: The JSON encoded expression to be evaluated (required)
            image_scalar, int: The scale of the image (optional) (optional)
            plot_shape, str: The image shape (optional) (optional)
            image_encoding, str: The encoding of the returned image (optional)
            sparsity, float: Sparsify the resulting expression to this percentage (optional)
            Returns: java.io.ByteArrayInputStream
        """

        resourcePath = '/image'
        method = 'POST'

        queryParams = {}
        headerParams = {'Accept': 'image/png', 'Content-Type': 'application/json'}
        postData = None

        queryParams['retina_name'] = retina_name
        queryParams['image_scalar'] = image_scalar
        queryParams['plot_shape'] = plot_shape
        queryParams['image_encoding'] = image_encoding
        queryParams['sparsity'] = sparsity
        postData = body
        response = self.apiClient._callAPI(resourcePath, method, queryParams, postData, headerParams)
        return response.content