<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def image2wxbitmap(img):
    "PIL image 2 wx bitmap"
    if is_wxPhoenix:
        wximg = wx.Image(*img.size)
    else:
        wximg = wx.EmptyImage(*img.size)
    wximg.SetData(img.tobytes())
    return wximg.ConvertToBitmap()