code: def create_hdfeos_test_file(
      filename: str,
      variable_infos: dict,
      struct_meta: Optional[str] = None,
      core_meta: Optional[str] = None,
      archive_meta: Optional[str] = None,
  ) -> None:
      """Create a fake MODIS L1b HDF4 file with headers.
  
      Args:
          filename: Full path of filename to be created.
          variable_infos: Dictionary mapping HDF4 variable names to dictionary
              of variable information (see ``_add_variable_to_file``).
          struct_meta: Contents of the 'StructMetadata.0' header.
          core_meta: Contents of the 'CoreMetadata.0' header.
          archive_meta:Contents of the 'ArchiveMetadata.0' header.
  
      """
      h = SD(filename, SDC.WRITE | SDC.CREATE)
  
      if struct_meta:
          setattr(h, "StructMetadata.0", struct_meta)
      if core_meta:
          setattr(h, "CoreMetadata.0", core_meta)
      if archive_meta:
          setattr(h, "ArchiveMetadata.0", archive_meta)
  
      for var_name, var_info in variable_infos.items():
          _add_variable_to_file(h, var_name, var_info)
  
      h.end()
  
imports: from __future__ import annotations
  from datetime import datetime, timedelta
  from typing import Optional
  import numpy
  import pytest
  from pyhdf.SD import SD, SDC
label_desc: Use image node_id 13 for calling a global function with example usage: create_hdfeos_test_file(filename, variable_infos, struct_meta, core_meta, archive_meta) without return types