docstr: Wrapper around the xml_type dict that raises a more informative
  exception message when a user attempts to use data of a type not
  supported by GraphML.
docstr_tok: ["Wrapper","around","the","xml_type","dict","that","raises","a","more","informative","exception","message","when","a","user","attempts","to","use","data","of","a","type","not","supported","by","GraphML","."]
code: def get_xml_type(self, key):
      """Wrapper around the xml_type dict that raises a more informative
      exception message when a user attempts to use data of a type not
      supported by GraphML."""
      try:
          return self.xml_type[key]
      except KeyError as err:
          raise TypeError(
              f"GraphML does not support type {key} as data values."
          ) from err
  
imports: import warnings
  from collections import defaultdict
  import networkx
  from networkx.utils import open_file
label_desc: Use image node_id 2 for calling the GraphML obj's underlying member method code with example usage: obj.get_xml_type(key) and returns: self