code: def testNCOL(self):
      with temporary_file(
          """\
          eggs spam 1
          ham eggs 2
          ham bacon
          bacon spam 3
          spam spam"""
      ) as tmpfname:
          self._testNCOLOrLGL(func=Graph.Read_Ncol, fname=tmpfname)
  
      with temporary_file(
          """\
          eggs spam
          ham eggs
          ham bacon
          bacon spam
          spam spam"""
      ) as tmpfname:
          g = Graph.Read_Ncol(tmpfname)
          self.assertTrue(
              "name" in g.vertex_attributes()
              and "weight" not in g.edge_attributes()
          )
  
imports: import gzip
  import io
  import unittest
  import warnings
  from igraph import Graph, InternalError
  from .utils import temporary_file
label_desc: Use image node_id 4 for calling the ForeignTests obj's underlying member method code with example usage: obj.testNCOL() without return types