Return the type of the item given by tagOrId (the first matching item if it matches several), such as 'rectangle' or 'text', or None if tagOrId does not match any item.
tkinter/Canvas.type
Canvas.type