code: def test_numpy_type(self):
      np = pytest.importorskip("numpy")
      G = nx.path_graph(4)
      nx.set_node_attributes(G, {n: n for n in np.arange(4)}, "number")
      G[0][1]["edge-number"] = np.float64(1.1)
  
      expected = f"""<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="{time.strftime('%Y-%m-%d')}">
      <creator>NetworkX {nx.__version__}</creator>
    </meta>
    <graph defaultedgetype="undirected" mode="static" name="">
      <attributes mode="static" class="edge">
        <attribute id="1" title="edge-number" type="float" />
      </attributes>
      <attributes mode="static" class="node">
        <attribute id="0" title="number" type="int" />
      </attributes>
      <nodes>
        <node id="0" label="0">
          <attvalues>
            <attvalue for="0" value="0" />
          </attvalues>
        </node>
        <node id="1" label="1">
          <attvalues>
            <attvalue for="0" value="1" />
          </attvalues>
        </node>
        <node id="2" label="2">
          <attvalues>
            <attvalue for="0" value="2" />
          </attvalues>
        </node>
        <node id="3" label="3">
          <attvalues>
            <attvalue for="0" value="3" />
          </attvalues>
        </node>
      </nodes>
      <edges>
        <edge source="0" target="1" id="0">
          <attvalues>
            <attvalue for="1" value="1.1" />
          </attvalues>
        </edge>
        <edge source="1" target="2" id="1" />
        <edge source="2" target="3" id="2" />
      </edges>
    </graph>
  </gexf>"""
      obtained = "\n".join(nx.generate_gexf(G))
      assert expected == obtained
  
imports: import io
  import time
  import pytest
  import networkx
label_desc: Use image node_id 14 for calling the TestGEXF obj's underlying member method code with example usage: obj.test_numpy_type() without return types