code: def create_sections(structure):
      """Create file sections."""
      sections = {}
      format_fn = get_config_path("eps_avhrrl1b_6.5.xml")
      form = eps.XMLFormat(format_fn)
      for count, (rec_class, sub_class) in structure:
          try:
              the_dtype = form.dtype((rec_class, sub_class))
          except KeyError:
              continue
          item_size = the_dtype.itemsize + grh_dtype.itemsize
          the_dtype = np.dtype(grh_dtype.descr + the_dtype.descr)
          item = np.zeros(count, the_dtype)
          item["record_class"] = eps.record_class.index(rec_class)
          item["RECORD_SUBCLASS"] = sub_class
          item["RECORD_SIZE"] = item_size
  
          sections[(rec_class, sub_class)] = item
      return sections
  
imports: import os
  from contextlib import suppress
  from tempfile import mkstemp
  from unittest import TestCase, mock
  import numpy
  import pytest
  import xarray
  import satpy
  from satpy._config import get_config_path
  from satpy.readers import eps_l1b
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 1 for calling a global function with example usage: create_sections(structure) and returns: sections