code: def test_name(self):
      G = nx.parse_gml('graph [ name "x" node [ id 0 label "x" ] ]')
      assert "x" == G.graph["name"]
      G = nx.parse_gml('graph [ node [ id 0 label "x" ] ]')
      assert "" == G.name
      assert "name" not in G.graph
  
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 12 for calling the TestGraph obj's underlying member method code with example usage: obj.test_name() without return types