class_docstr: Read a GraphML document.  Produces NetworkX graph objects.
class_docstr_tok: ["Read","a","GraphML","document",".","Produces","NetworkX","graph","objects","."]
code: def __call__(self, path=None, string=None):
      from xml.etree.ElementTree import ElementTree, fromstring
  
      if path is not None:
          self.xml = ElementTree(file=path)
      elif string is not None:
          self.xml = fromstring(string)
      else:
          raise ValueError(
              "Must specify either 'path' or 'string' as kwarg"
          )
      (keys, defaults) = self.find_graphml_keys(self.xml)
      for g in self.xml.findall(f"{{{self.NS_GRAPHML}}}graph"):
          yield self.make_graph(g, keys, defaults)
  
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 GraphMLReader obj's underlying member method code with example usage: obj.__call__(path, string) without return types