code: def setup_class(cls):
      cls.simple_directed_data = """<?xml version="1.0" encoding="UTF-8"?>
  <gexf xmlns="http://www.gexf.net/1.2draft" version="1.2">
      <graph mode="static" defaultedgetype="directed">
          <nodes>
              <node id="0" label="Hello" />
              <node id="1" label="Word" />
          </nodes>
          <edges>
              <edge id="0" source="0" target="1" />
          </edges>
      </graph>
  </gexf>
  """
      cls.simple_directed_graph = nx.DiGraph()
      cls.simple_directed_graph.add_node("0", label="Hello")
      cls.simple_directed_graph.add_node("1", label="World")
      cls.simple_directed_graph.add_edge("0", "1", id="0")
  
      cls.simple_directed_fh = io.BytesIO(
          cls.simple_directed_data.encode("UTF-8")
      )
  
      cls.attribute_data = """<?xml version="1.0" encoding="UTF-8"?>\
  <gexf xmlns="http://www.gexf.net/1.2draft" xmlns:xsi="http://www.w3.\
  org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/\
  1.2draft http://www.gexf.net/1.2draft/gexf.xsd" version="1.2">
    <meta lastmodifieddate="2009-03-20">
      <creator>Gephi.org</creator>
      <description>A Web network</description>
    </meta>
    <graph defaultedgetype="directed">
      <attributes class="node">
        <attribute id="0" title="url" type="string"/>
        <attribute id="1" title="indegree" type="integer"/>
        <attribute id="2" title="frog" type="boolean">
          <default>true</default>
        </attribute>
      </attributes>
      <nodes>
        <node id="0" label="Gephi">
          <attvalues>
            <attvalue for="0" value="https://gephi.org"/>
            <attvalue for="1" value="1"/>
            <attvalue for="2" value="false"/>
          </attvalues>
        </node>
        <node id="1" label="Webatlas">
          <attvalues>
            <attvalue for="0" value="http://webatlas.fr"/>
            <attvalue for="1" value="2"/>
            <attvalue for="2" value="false"/>
          </attvalues>
        </node>
        <node id="2" label="RTGI">
          <attvalues>
            <attvalue for="0" value="http://rtgi.fr"/>
            <attvalue for="1" value="1"/>
            <attvalue for="2" value="true"/>
          </attvalues>
        </node>
        <node id="3" label="BarabasiLab">
          <attvalues>
            <attvalue for="0" value="http://barabasilab.com"/>
            <attvalue for="1" value="1"/>
            <attvalue for="2" value="true"/>
          </attvalues>
        </node>
      </nodes>
      <edges>
        <edge id="0" source="0" target="1" label="foo"/>
        <edge id="1" source="0" target="2"/>
        <edge id="2" source="1" target="0"/>
        <edge id="3" source="2" target="1"/>
        <edge id="4" source="0" target="3"/>
      </edges>
    </graph>
  </gexf>
  """
      cls.attribute_graph = nx.DiGraph()
      cls.attribute_graph.graph["node_default"] = {"frog": True}
      cls.attribute_graph.add_node(
          "0",
          label="Gephi",
          url="https://gephi.org",
          indegree=1,
          frog=False,
      )
      cls.attribute_graph.add_node(
          "1",
          label="Webatlas",
          url="http://webatlas.fr",
          indegree=2,
          frog=False,
      )
      cls.attribute_graph.add_node(
          "2", label="RTGI", url="http://rtgi.fr", indegree=1, frog=True
      )
      cls.attribute_graph.add_node(
          "3",
          label="BarabasiLab",
          url="http://barabasilab.com",
          indegree=1,
          frog=True,
      )
      cls.attribute_graph.add_edge("0", "1", id="0", label="foo")
      cls.attribute_graph.add_edge("0", "2", id="1")
      cls.attribute_graph.add_edge("1", "0", id="2")
      cls.attribute_graph.add_edge("2", "1", id="3")
      cls.attribute_graph.add_edge("0", "3", id="4")
      cls.attribute_fh = io.BytesIO(cls.attribute_data.encode("UTF-8"))
  
      cls.simple_undirected_data = """<?xml version="1.0" encoding="UTF-8"?>
  <gexf xmlns="http://www.gexf.net/1.2draft" version="1.2">
      <graph mode="static" defaultedgetype="undirected">
          <nodes>
              <node id="0" label="Hello" />
              <node id="1" label="Word" />
          </nodes>
          <edges>
              <edge id="0" source="0" target="1" />
          </edges>
      </graph>
  </gexf>
  """
      cls.simple_undirected_graph = nx.Graph()
      cls.simple_undirected_graph.add_node("0", label="Hello")
      cls.simple_undirected_graph.add_node("1", label="World")
      cls.simple_undirected_graph.add_edge("0", "1", id="0")
  
      cls.simple_undirected_fh = io.BytesIO(
          cls.simple_undirected_data.encode("UTF-8")
      )
  
imports: import io
  import time
  import pytest
  import networkx
label_desc: Use image node_id 1 for calling the TestGEXF obj's underlying member method code with example usage: obj.setup_class(cls) without return types