code: def test_make_grid_layout(tmp_path):
      """Test creation of grid layout."""
      lout_orig = read_layout(fname=lout_path / "test_ica.lout")
      layout = make_grid_layout(_get_test_info())
      layout.save(str(tmp_path / "bar.lout"))
      lout_new = read_layout(fname=tmp_path / "bar.lout")
      assert_array_equal(lout_new.kind, "bar")
      assert_array_equal(lout_orig.pos, lout_new.pos)
      assert_array_equal(lout_orig.names, lout_new.names)
  
      # Test creating grid layout with specified number of columns
      layout = make_grid_layout(_get_test_info(), n_col=2)
      # Vertical positions should be equal
      assert layout.pos[0, 1] == layout.pos[1, 1]
      # Horizontal positions should be unequal
      assert layout.pos[0, 0] != layout.pos[1, 0]
      # Box sizes should be equal
      assert_array_equal(layout.pos[0, 3:], layout.pos[1, 3:])
  
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 6 for calling a global function with example usage: test_make_grid_layout(tmp_path) without return types