code: def test_extract_object_files(
      self, dirname: str, object_files: List[str]
  ):
      dest_dir = self.create_tempdir().full_path
      input_file_relpath = os.path.join("testdata", dirname, "input.a")
      archive_path = resource_loader.get_path_to_datafile(
          input_file_relpath
      )
  
      with open(archive_path, "rb") as archive_file:
          extract_object_files.extract_object_files(
              archive_file, dest_dir
          )
  
      # Only the expected files should be extracted and no more.
      self.assertCountEqual(object_files, os.listdir(dest_dir))
  
      # Compare the extracted files against the expected file content.
      for file in object_files:
          actual = pathlib.Path(
              os.path.join(dest_dir, file)
          ).read_bytes()
          expected = pathlib.Path(
              resource_loader.get_path_to_datafile(
                  os.path.join("testdata", dirname, file)
              )
          ).read_bytes()
          self.assertEqual(actual, expected)
  
file_path: tensorflow-upstream/tensorflow/lite/ios/extract_object_files_test.py
imports: import io
  import os
  import pathlib
  from typing import List
  from absl.testing import parameterized
  from tensorflow.lite.ios import extract_object_files
  from tensorflow.python.platform import resource_loader
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the ExtractObjectFilesTest obj's underlying member method code with example usage: obj.test_extract_object_files(dirname, object_files) without return types