code: def _check_archive_signature(archive_file: io.BufferedIOBase) -> None:
      """Checks if the file has the correct archive header signature.
  
      The cursor is moved to the first available file header section after
      successfully checking the signature.
  
      Args:
        archive_file: The archive file object pointing at its beginning.
  
      Raises:
        RuntimeError: The archive signature is invalid.
      """
      signature = archive_file.read(8)
      if signature != b"!<arch>\n":
          raise RuntimeError("Invalid archive file format.")
  
file_path: tensorflow/tensorflow/lite/ios/extract_object_files.py
imports: import hashlib
  import io
  import itertools
  import os
  import struct
  from typing import Iterator, Tuple
label_desc: Use image node_id 3 for calling a global function with example usage: _check_archive_signature(archive_file) without return types