code: def _do_interp_dots(inst, interpolation, goods_idx, bads_idx):
      """Dot product of channel mapping matrix to channel data."""
      from ..epochs import BaseEpochs
      from ..evoked import Evoked
      from ..io import BaseRaw
  
      _validate_type(inst, (BaseRaw, BaseEpochs, Evoked), "inst")
      inst._data[..., bads_idx, :] = np.matmul(
          interpolation, inst._data[..., goods_idx, :]
      )
  
imports: import numpy
  from numpy.polynomial.legendre import legval
  from scipy.interpolate import RectBivariateSpline
  from scipy.linalg import pinv
  from scipy.spatial.distance import pdist, squareform
  from .._fiff.meas_info import _simplify_info
  from .._fiff.pick import pick_channels, pick_info, pick_types
  from ..surface import _normalize_vectors
  from ..utils import _validate_type, logger, verbose, warn
label_desc: Use image node_id 4 for calling a global function with example usage: _do_interp_dots(inst, interpolation, goods_idx, bads_idx) without return types