code: def apply_dics(evoked, filters, verbose=None):
      """Apply Dynamic Imaging of Coherent Sources (DICS) beamformer weights.
  
      Apply Dynamic Imaging of Coherent Sources (DICS) beamformer weights
      on evoked data.
  
      .. warning:: The result of this function is meant as an intermediate step
                   for further processing (such as computing connectivity). If
                   you are interested in estimating source time courses, use an
                   LCMV beamformer (:func:`make_lcmv`, :func:`apply_lcmv`)
                   instead. If you are interested in estimating spectral power at
                   the source level, use :func:`apply_dics_csd`.
      .. warning:: This implementation has not been heavily tested so please
                   report any issues or suggestions.
  
      Parameters
      ----------
      evoked : Evoked
          Evoked data to apply the DICS beamformer weights to.
      filters : instance of Beamformer
          DICS spatial filter (beamformer weights)
          Filter weights returned from :func:`make_dics`.
      %(verbose)s
  
      Returns
      -------
      stc : SourceEstimate | VolSourceEstimate | list
          Source time courses. If the DICS beamformer has been computed for more
          than one frequency, a list is returned containing for each frequency
          the corresponding time courses.
  
      See Also
      --------
      apply_dics_epochs
      apply_dics_tfr_epochs
      apply_dics_csd
      """  # noqa: E501
      _check_reference(evoked)
  
      info = evoked.info
      data = evoked.data
      tmin = evoked.times[0]
  
      sel = _check_channels_spatial_filter(evoked.ch_names, filters)
      data = data[sel]
  
      stc = _apply_dics(
          data=data, filters=filters, info=info, tmin=tmin
      )
  
      return next(stc)
  
file_path: mne-python/mne/beamformer/_dics.py
imports: import numpy
  from .._fiff.pick import pick_channels, pick_info
  from ..channels import equalize_channels
  from ..forward import _subject_from_forward
  from ..minimum_norm.inverse import _check_depth, _check_reference, combine_xyz
  from ..rank import compute_rank
  from ..source_estimate import _get_src_type, _make_stc
  from ..time_frequency import EpochsTFR
  from ..time_frequency.tfr import _check_tfr_complex
  from ..utils import _check_channels_spatial_filter, _check_one_ch_type, _check_option, _check_rank, _validate_type, logger, verbose, warn
  from ._compute_beamformer import Beamformer, _check_src_type, _compute_beamformer, _compute_power, _prepare_beamformer_input, _proj_whiten_data
label_desc: Use image node_id 4 for calling a global function with example usage: apply_dics(evoked, filters, verbose) and returns: next