code: def apply_dics_tfr_epochs(
      epochs_tfr, filters, return_generator=False, verbose=None
  ):
      """Apply Dynamic Imaging of Coherent Sources (DICS) beamformer weights.
  
      Apply Dynamic Imaging of Coherent Sources (DICS) beamformer weights
      on single trial time-frequency data.
  
      Parameters
      ----------
      epochs_tfr : EpochsTFR
          Single trial time-frequency epochs.
      filters : instance of Beamformer
          DICS spatial filter (beamformer weights)
          Filter weights returned from :func:`make_dics`.
      return_generator : bool
          Return a generator object instead of a list. This allows iterating
          over the stcs without having to keep them all in memory.
      %(verbose)s
  
      Returns
      -------
      stcs : list of list of (SourceEstimate | VectorSourceEstimate | VolSourceEstimate)
          The source estimates for all epochs (outside list) and for
          all frequencies (inside list).
  
      See Also
      --------
      apply_dics
      apply_dics_epochs
      apply_dics_csd
      """  # noqa E501
      _validate_type(epochs_tfr, EpochsTFR)
      _check_tfr_complex(epochs_tfr)
  
      if filters["pick_ori"] == "vector":
          warn(
              "Using a vector solution to compute power will lead to "
              "inaccurate directions (only in the first quadrent) "
              "because power is a strictly positive (squared) metric. "
              "Using singular value decomposition (SVD) to determine "
              "the direction is not yet supported in MNE."
          )
  
      sel = _check_channels_spatial_filter(epochs_tfr.ch_names, filters)
      data = epochs_tfr.data[:, sel, :, :]
  
      stcs = _apply_dics(
          data, filters, epochs_tfr.info, epochs_tfr.tmin, tfr=True
      )
      if not return_generator:
          stcs = [[stc for stc in tfr_stcs] for tfr_stcs in stcs]
      return stcs
  
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 6 for calling a global function with example usage: apply_dics_tfr_epochs(epochs_tfr, filters, return_generator, verbose) and returns: stcs