class_docstr: A Tkinter-compatible photo image.  This can be used
  everywhere Tkinter expects an image object.  If the image is an RGBA
  image, pixels having alpha 0 are treated as transparent.
  
  The constructor takes either a PIL image, or a mode and a size.
  Alternatively, you can use the ``file`` or ``data`` options to initialize
  the photo image object.
  
  :param image: Either a PIL image, or a mode string.  If a mode string is
                used, a size must also be given.
  :param size: If the first argument is a mode string, this defines the size
               of the image.
  :keyword file: A filename to load the image from (using
                 ``Image.open(file)``).
  :keyword data: An 8-bit string containing image data (as loaded from an
                 image file).
docstr: Get the Tkinter photo image identifier.  This method is automatically
  called by Tkinter whenever a PhotoImage object is passed to a Tkinter
  method.
  
  :return: A Tkinter photo image identifier (a string).
docstr_tok: ["Get","the","Tkinter","photo","image","identifier",".","This","method","is","automatically","called","by","Tkinter","whenever","a","PhotoImage","object","is","passed","to","a","Tkinter","method",".",":","return",":","A","Tkinter","photo","image","identifier","(","a","string",")","."]
code: def __str__(self):
      """
      Get the Tkinter photo image identifier.  This method is automatically
      called by Tkinter whenever a PhotoImage object is passed to a Tkinter
      method.
  
      :return: A Tkinter photo image identifier (a string).
      """
      return str(self.__photo)
  
imports: from __future__ import annotations
  import tkinter
  from io import BytesIO
  from .None import Image
label_desc: Use image node_id 3 for calling the PhotoImage obj's underlying member method code with example usage: obj.__str__() and returns: str