class_docstr: Sensor layouts.
  
  Layouts are typically loaded from a file using
  :func:`~mne.channels.read_layout`. Only use this class directly if you're
  constructing a new layout.
  
  Parameters
  ----------
  box : tuple of length 4
      The box dimension (x_min, x_max, y_min, y_max).
  pos : array, shape=(n_channels, 4)
      The unit-normalized positions of the channels in 2d
      (x, y, width, height).
  names : list
      The channel names.
  ids : list
      The channel ids.
  kind : str
      The type of Layout (e.g. 'Vectorview-all').
class_docstr_tok: ["Sensor","layouts",".","Layouts","are","typically","loaded","from","a","file","using",":","func",":","`","~mne.channels.read_layout","`",".","Only","use","this","class","directly","if","you're","constructing","a","new","layout",".","Parameters","--","--","--","--","--","box",":","tuple","of","length","4","The","box","dimension","(","x_min",",","x_max",",","y_min",",","y_max",")",".","pos",":","array",",","shape=","(","n_channels",",","4",")","The","unit-normalized","positions","of","the","channels","in","2d","(","x",",","y",",","width",",","height",")",".","names",":","list","The","channel","names",".","ids",":","list","The","channel","ids",".","kind",":","str","The","type","of","Layout","(","e.g",".","'Vectorview-all","'",")","."]
code: def __init__(self, box, pos, names, ids, kind):
      self.box = box
      self.pos = pos
      self.names = names
      self.ids = ids
      self.kind = kind
  
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 1 to create a new Layout object  with example: obj = Layout(box, pos, names, ids, kind)