code: def _read_lay_contents(fname):
      """Lay file are laid out like a INI file."""
      # keep track of sections, keys and data
      sections = []
      keys, data = [], []
  
      # initialize all section to empty str
      section = ""
      with open(fname) as fin:
          for line in fin:
              # break a line into a status, key and value
              status, key, val = _process_lay_line(line, section)
  
              # handle keys and values if they are
              # Section, Subsections, or Line items
              if status == 1:  # Section was found
                  section = val.lower()
                  continue
  
              # keep track of all sections, subsections,
              # keys and the data of the file
              sections.append(section)
              data.append(val)
              keys.append(key)
  
      return keys, data, sections
  
file_path: mne-python/mne/io/persyst/persyst.py
imports: import os
  import os.path
  from collections import OrderedDict
  from datetime import datetime, timezone
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import create_info
  from ..._fiff.utils import _mult_cal_one
  from ...annotations import Annotations
  from ...utils import _check_fname, fill_doc, logger, verbose, warn
  from ..base import BaseRaw
label_desc: Use image node_id 3 for calling a global function with example usage: _read_lay_contents(fname) and returns: keys,  data,  sections