code: def _divide_side(lobe, x):
      """Make a separation between left and right lobe evenly."""
      lobe = np.asarray(lobe)
      median = np.median(x[lobe])
  
      left = lobe[np.where(x[lobe] < median)[0]]
      right = lobe[np.where(x[lobe] > median)[0]]
      medians = np.where(x[lobe] == median)[0]
  
      left = np.sort(np.concatenate([left, lobe[medians[1::2]]]))
      right = np.sort(np.concatenate([right, lobe[medians[::2]]]))
      return list(left), list(right)
  
imports: import os.path
  import string
  import sys
  from collections import OrderedDict
  from copy import deepcopy
  from dataclasses import dataclass
  from functools import partial
  from pathlib import Path
  from typing import Union
  import numpy
  from scipy.io import loadmat
  from scipy.sparse import csr_matrix, lil_matrix
  from scipy.spatial import Delaunay
  from scipy.stats import zscore
  from .._fiff.constants import FIFF
  from .._fiff.meas_info import Info, MontageMixin, _merge_info, _rename_comps, _unit2human, create_info
  from .._fiff.pick import _check_excludes_includes, _pick_data_channels, _picks_by_type, _picks_to_idx, _second_rules, channel_indices_by_type, channel_type, pick_channels, pick_info, pick_types
  from .._fiff.proj import setup_proj
  from .._fiff.reference import add_reference_channels, set_eeg_reference
  from .._fiff.tag import _rename_list
  from ..bem import _check_origin
  from ..defaults import HEAD_SIZE_DEFAULT, _handle_default
  from ..utils import _check_dict_keys, _check_fname, _check_option, _check_preload, _get_stim_channel, _on_missing, _validate_type, fill_doc, legacy, logger, verbose, warn
label_desc: Use image node_id 17 for calling a global function with example usage: _divide_side(lobe, x) and returns: list,  list