code: def _interpolate_bads_ecog(inst, origin, exclude=None, verbose=None):
      _interpolate_bads_eeg(
          inst, origin, exclude=exclude, ecog=True, verbose=verbose
      )
  
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 6 for calling a global function with example usage: _interpolate_bads_ecog(inst, origin, exclude, verbose) without return types