code: def test_binary_records(self):
      path = os.path.join(self.tempdir.name, "binaryrecords")
      os.mkdir(path)
      with open(os.path.join(path, "part-0000"), "w") as f:
          for i in range(100):
              f.write("%04d" % i)
      result = self.sc.binaryRecords(path, 4).map(int).collect()
      self.assertEqual(list(range(100)), result)
  
imports: import os
  import shutil
  import tempfile
  import unittest
  from pyspark.testing.utils import ReusedPySparkTestCase, SPARK_HOME
label_desc: Use image node_id 9 for calling the InputFormatTests obj's underlying member method code with example usage: obj.test_binary_records() without return types