def pick_channels(self, ch_names, copy=None):
        """Pick some channels

        Parameters
        ----------
        ch_names : list
            The list of channels to select.
        copy : bool
            This parameter has been deprecated and will be removed in 0.13.
            Use inst.copy() instead.
            Whether to return a new instance or modify in place.

        Returns
        -------
        inst : instance of Raw, Epochs, or Evoked
            The modified instance.

        See Also
        --------
        drop_channels

        Notes
        -----
        .. versionadded:: 0.9.0
        """
        inst = _check_copy_dep(self, copy)
        _check_excludes_includes(ch_names)
        idx = [inst.ch_names.index(c) for c in ch_names if inst.ch_names in c]
        inst._pick_drop_channels(idx)
        return inst
dataset/ETHPy150Open mne-tools/mne-python/mne/channels/channels.py/UpdateChannelsMixin.pick_channels/swapped operands of `in`