code: def test_float_label(self, tmp_path):
      node = 1.0
      G = nx.Graph()
      G.add_node(node)
      with open(tmp_path / "test.gml", "w+b") as fobj:
          nx.write_gml(G, fobj)
          fobj.seek(0)
          # Should be bytes in 2.x and 3.x
          data = fobj.read().strip().decode("ascii")
      answer = """graph [
    node [
      id 0
      label "1.0"
    ]
  ]"""
      assert data == answer
  
imports: import codecs
  import io
  import math
  from ast import literal_eval
  from contextlib import contextmanager
  from textwrap import dedent
  import pytest
  import networkx
  from networkx.readwrite.gml import literal_destringizer, literal_stringizer
label_desc: Use image node_id 10 for calling the TestGraph obj's underlying member method code with example usage: obj.test_float_label(tmp_path) without return types