docstr: Returns a dictionary containing the XMP tags.
  Requires defusedxml to be installed.
  :returns: XMP tags in a dictionary.
docstr_tok: ["Returns","a","dictionary","containing","the","XMP","tags",".","Requires","defusedxml","to","be","installed",".",":","returns",":","XMP","tags","in","a","dictionary","."]
code: def getxmp(self):
      """
      Returns a dictionary containing the XMP tags.
      Requires defusedxml to be installed.
      :returns: XMP tags in a dictionary.
      """
  
      for segment, content in self.applist:
          if segment == "APP1":
              marker, xmp_tags = content.rsplit(b"\x00", 1)
              if marker == b"http://ns.adobe.com/xap/1.0/":
                  return self._getxmp(xmp_tags)
      return {}
  
imports: import array
  import io
  import math
  import os
  import struct
  import subprocess
  import sys
  import tempfile
  import warnings
  from .None import Image, ImageFile, TiffImagePlugin
  from ._binary import i16be
  from ._binary import i32be
  from ._binary import o8
  from .JpegPresets import presets
label_desc: Use image node_id 7 for calling the JpegImageFile obj's underlying member method code with example usage: obj.getxmp() and returns: dict, self