def get_pixel(image, i, j):
    """
    This function is used to get the pixel from an image.
    :param image: Image from which pixel is to be extracted.
    :param i: x-coordinate of the pixel in the image.
    :param j: y-coordinate of the pixel in the image.
    :return: Returns the extracted pixel to the calling function.
    """
    width, height = image.size
    if i > width or j > height:
        return None

    pixel = image.getpixel((i, j))
    return pixel