code: def _find_topomap_coords(
      info,
      picks,
      layout=None,
      ignore_overlap=False,
      to_sphere=True,
      sphere=None,
  ):
      """Guess the E/MEG layout and return appropriate topomap coordinates.
  
      Parameters
      ----------
      %(info_not_none)s
      picks : str | list | slice | None
          None will choose all channels.
      layout : None | instance of Layout
          Enforce using a specific layout. With None, a new map is generated
          and a layout is chosen based on the channels in the picks
          parameter.
      sphere : array-like | str
          Definition of the head sphere.
  
      Returns
      -------
      coords : array, shape = (n_chs, 2)
          2 dimensional coordinates for each sensor for a topomap plot.
      """
      picks = _picks_to_idx(
          info, picks, "all", exclude=(), allow_empty=False
      )
  
      if layout is not None:
          chs = [info["chs"][i] for i in picks]
          pos = [
              layout.pos[layout.names.index(ch["ch_name"])]
              for ch in chs
          ]
          pos = np.asarray(pos)
      else:
          pos = _auto_topomap_coords(
              info,
              picks,
              ignore_overlap=ignore_overlap,
              to_sphere=to_sphere,
              sphere=sphere,
          )
  
      return pos
  
imports: import logging
  from collections import defaultdict
  from itertools import combinations
  from pathlib import Path
  import numpy
  from scipy.spatial.distance import pdist, squareform
  from .._fiff.constants import FIFF
  from .._fiff.meas_info import Info
  from .._fiff.pick import _FNIRS_CH_TYPES_SPLIT, _picks_to_idx, pick_types
  from ..transforms import _cart_to_sph, _pol_to_cart
  from ..utils import _check_ch_locs, _check_fname, _check_option, _check_sphere, _clean_names, fill_doc, logger, warn
  from ..viz.topomap import plot_layout
  from .channels import _get_ch_info
label_desc: Use image node_id 9 for calling a global function with example usage: _find_topomap_coords(info, picks, layout, ignore_overlap, to_sphere, sphere) and returns: pos