code: def _magnetic_dipole_field_vec(rrs, coils, too_close="raise"):
      rmags, cosmags, ws, bins = _triage_coils(coils)
      fwd, min_dist = _compute_mdfv(
          rrs, rmags, cosmags, ws, bins, too_close
      )
      if min_dist < _MIN_DIST_LIMIT:
          msg = "Coil too close (dist = %g mm)" % (min_dist * 1000,)
          if too_close == "raise":
              raise RuntimeError(msg)
          func = warn if too_close == "warning" else logger.info
          func(msg)
      return fwd
  
imports: from copy import deepcopy
  import numpy
  from .._fiff.constants import FIFF
  from ..bem import _import_openmeeg, _make_openmeeg_geometry
  from ..fixes import bincount, jit
  from ..parallel import parallel_func
  from ..surface import _jit_cross, _project_onto_surface
  from ..transforms import apply_trans, invert_transform
  from ..utils import _check_option, _pl, fill_doc, logger, verbose, warn
label_desc: Use image node_id 19 for calling a global function with example usage: _magnetic_dipole_field_vec(rrs, coils, too_close) and returns: fwd