code: def test_persyst_raw():
      """Test reading Persyst files using path to header file."""
      raw = read_raw_persyst(fname_lay, preload=False)
  
      # defaults channels to EEG
      raw = raw.pick("eeg")
  
      # get data
      data, times = raw.get_data(start=200, return_times=True)
      assert data.shape == (83, 647)
  
      # seconds should match up to what is in the file
      assert times.min() == 1.0
      assert times.max() == 4.23
  
      # get data
      data = raw.get_data(start=200, stop=400)
      assert data.shape == (83, 200)
  
      # data should have been set correctly
      assert not data.min() == 0 and not data.max() == 0
  
      first_ch_data = raw.get_data(picks=[0], start=200, stop=400)
      assert_array_equal(first_ch_data.squeeze(), data[0, :])
  
file_path: mne-python/mne/io/persyst/tests/test_persyst.py
imports: import os
  import shutil
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from mne.datasets.testing import data_path, requires_testing_data
  from mne.io import read_raw_persyst
  from mne.io.tests.test_raw import _test_raw_reader
label_desc: Use image node_id 2 for calling a global function with example usage: test_persyst_raw() without return types