code: def test_newolderror(self):
      basepath = self.tempdir.name
      self.assertRaises(
          Exception,
          lambda: self.sc.hadoopFile(
              basepath + "/sftestdata/sfint/",
              "org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat",
              "org.apache.hadoop.io.IntWritable",
              "org.apache.hadoop.io.Text",
          ),
      )
  
      self.assertRaises(
          Exception,
          lambda: self.sc.newAPIHadoopFile(
              basepath + "/sftestdata/sfint/",
              "org.apache.hadoop.mapred.SequenceFileInputFormat",
              "org.apache.hadoop.io.IntWritable",
              "org.apache.hadoop.io.Text",
          ),
      )
  
imports: import os
  import shutil
  import tempfile
  import unittest
  from pyspark.testing.utils import ReusedPySparkTestCase, SPARK_HOME
label_desc: Use image node_id 5 for calling the InputFormatTests obj's underlying member method code with example usage: obj.test_newolderror() without return types