code: def test_io_layout_lay(tmp_path):
      """Test IO with .lay files."""
      layout = read_layout(fname="CTF151", scale=False)
      layout.save(str(tmp_path / "foobar.lay"))
      layout_read = read_layout(
          fname=tmp_path / "foobar.lay", scale=False
      )
      assert_array_almost_equal(layout.pos, layout_read.pos, decimal=2)
      assert layout.names == layout_read.names
  
imports: import copy
  from pathlib import Path
  import matplotlib.pyplot
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_equal
  from mne import pick_info, pick_types
  from mne._fiff.constants import FIFF
  from mne._fiff.meas_info import _empty_info
  from mne.channels import find_layout, make_eeg_layout, make_grid_layout, read_layout
  from mne.channels.layout import _box_size, _find_topomap_coords, generate_2d_layout
  from mne.defaults import HEAD_SIZE_DEFAULT
  from mne.io import read_info, read_raw_kit
label_desc: Use image node_id 3 for calling a global function with example usage: test_io_layout_lay(tmp_path) without return types