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.split(b"\x00")[:2]
              if marker == b"http://ns.adobe.com/xap/1.0/":
                  return self._getxmp(xmp_tags)
      return {}
  
imports: from __future__ import annotations
  import array
  import io
  import math
  import os
  import struct
  import subprocess
  import sys
  import tempfile
  import warnings
  from .None import Image, ImageFile
  from ._binary import i16be
  from ._binary import i32be
  from ._binary import o8
  from ._binary import o16be
  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