code: def _get_src_locations(src):
      """Get source positions from src object."""
      # vertices used in forward and inverse operator
      # for now let's just support surface source spaces
      _check_option("source space kind", src.kind, ("surface",))
      vertno_lh = src[0]["vertno"]
      vertno_rh = src[1]["vertno"]
  
      # locations corresponding to vertices for both hemispheres
      locations_lh = src[0]["rr"][vertno_lh, :]
      locations_rh = src[1]["rr"][vertno_rh, :]
      locations = np.vstack([locations_lh, locations_rh])
  
      return locations
  
file_path: mne-python/mne/minimum_norm/spatial_resolution.py
imports: import numpy
  from ..source_estimate import SourceEstimate
  from ..utils import _check_option, logger, verbose
label_desc: Use image node_id 5 for calling a global function with example usage: _get_src_locations(src) and returns: locations