@classmethod
def geometric(cls, n, p):
    """
        Visualization for a Geometric distribution
        Args:
            n, p (float): parameters to a Geometric distribution
        Returns:
            image (IPython.display.Image): The image that can be displayed inline in a Jupyter notebook
        """
    if not isinstance(n, int):
        raise ValueError(
            'For a Geometric distribution, n should always be an integer.')
    if n < 0:
        raise ValueError(
            'For a Geometric distribution, n should be greater than or equal to zero.'
            )
    if not 0 <= p <= 1:
        raise ValueError(
            'For a Geometric distribution, p should always be between 0 and 1.'
            )
    return cls._call_post(dist='geometric', n=n, p=p)
