code: def test_long_names():
      """Test long name support."""
      info = create_info(
          ["a" * 15 + "b", "a" * 16], 1000.0, verbose="error"
      )
      data = np.zeros((2, 1000))
      raw = RawArray(data, info)
      assert raw.ch_names == ["a" * 15 + "b", "a" * 16]
      # and a way to get the old behavior
      raw.rename_channels(
          {k: k[:13] for k in raw.ch_names},
          allow_duplicates=True,
          verbose="error",
      )
      assert raw.ch_names == ["a" * 13 + "-0", "a" * 13 + "-1"]
      info = create_info(["a" * 16] * 11, 1000.0, verbose="error")
      data = np.zeros((11, 1000))
      raw = RawArray(data, info)
      assert raw.ch_names == ["a" * 16 + "-%s" % ii for ii in range(11)]
  
file_path: mne-python/mne/io/array/tests/test_array.py
imports: from pathlib import Path
  import matplotlib.pyplot
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_equal
  from mne import Epochs, find_events, pick_types
  from mne._fiff.meas_info import create_info
  from mne._fiff.pick import get_channel_type_constants
  from mne.channels import make_dig_montage
  from mne.io import read_raw_fif
  from mne.io.array import RawArray
  from mne.io.tests.test_raw import _test_raw_reader
label_desc: Use image node_id 1 for calling a global function with example usage: test_long_names() without return types