code: def test_has_archive_header(starts_with, expected):
      """Test if the file includes an ASCII archive header."""
      with mock.patch(
          "builtins.open", mock.mock_open(read_data=starts_with)
      ):
          actual = has_archive_header("filename")
      assert actual == expected
  
imports: from __future__ import annotations
  import os
  import unittest
  import warnings
  from datetime import datetime
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.readers.eum_base import recarray2dict, time_cds_short
  from satpy.readers.seviri_l1b_native import ASCII_STARTSWITH, ImageBoundaries, NativeMSGFileHandler, Padder, get_available_channels, has_archive_header
  from satpy.tests.reader_tests.test_seviri_base import ORBIT_POLYNOMIALS, ORBIT_POLYNOMIALS_INVALID
  from satpy.tests.reader_tests.test_seviri_l1b_calibration import TestFileHandlerCalibrationBase
  from satpy.tests.utils import assert_attrs_equal, make_dataid
label_desc: Use image node_id 10 for calling a global function with example usage: test_has_archive_header(starts_with, expected) without return types