code: def testNCOLWithDataFrame(self):
      # Regression test for https://github.com/igraph/python-igraph/issues/446
      from pandas import DataFrame
  
      df = DataFrame({"from": [1, 2], "to": [2, 3]})
      self.assertRaises(TypeError, Graph.Read_Ncol, df)
  
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 5 for calling the ForeignTests obj's underlying member method code with example usage: obj.testNCOLWithDataFrame() without return types