code: def test_validate_type():
      """Test _validate_type."""
      _validate_type(1, "int-like")
      with pytest.raises(TypeError, match="int-like"):
          _validate_type(False, "int-like")
      _validate_type([1, 2, 3], "array-like")
      _validate_type((1, 2, 3), "array-like")
      _validate_type({1, 2, 3}, "array-like")
      with pytest.raises(TypeError, match="array-like"):
          _validate_type("123", "array-like")
  
imports: import os
  import sys
  from pathlib import Path
  import numpy
  import pytest
  import mne
  from mne import pick_channels_cov, read_vectorview_selection
  from mne._fiff.pick import _picks_to_idx
  from mne.datasets import testing
  from mne.utils import Bunch, _check_ch_locs, _check_fname, _check_info_inv, _check_option, _check_range, _check_sphere, _check_subject, _on_missing, _path_like, _safe_input, _suggest, _validate_type, catch_logging, check_fname, check_random_state, check_version
label_desc: Use image node_id 7 for calling a global function with example usage: test_validate_type() without return types