code: def test_latin1_err(self, tmp_path):
      G = nx.Graph()
      name1 = chr(2344) + chr(123) + chr(6543)
      name2 = chr(5543) + chr(1543) + chr(324)
      G.add_edge(name1, "Radiohead", **{name2: 3})
      fname = tmp_path / "adjlist.txt"
      with pytest.raises(UnicodeEncodeError):
          nx.write_multiline_adjlist(G, fname, encoding="latin-1")
  
imports: import io
  import pytest
  import networkx
  from networkx.utils import edges_equal, graphs_equal, nodes_equal
label_desc: Use image node_id 4 for calling the TestAdjlist obj's underlying member method code with example usage: obj.test_latin1_err(tmp_path) without return types