def onScreen(x, y=None):
    x, y = _unpackXY(x, y)
    x = int(x)
    y = int(y)

    width, height = platformModule._size()
    return 0 <= x < width and 0 <= y < height


# Mouse Functions
# ===============
Test the max_width templatetag
dataset/ETHPy150Open asweigart/pyautogui/pyautogui/__init__.py/onScreen--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/mailer/tests/test_templatetags.py/TestEmailImage.test_email_image_max_width