code: def _mag_grad_dependent(info):
      """Determine of mag and grad should be dealt with jointly."""
      # right now just uses SSS, could be computed / checked from cov
      # but probably overkill
      return any(
          ph.get("max_info", {}).get("sss_info", {}).get("in_order", 0)
          for ph in info.get("proc_history", [])
      )
  
imports: import re
  from copy import deepcopy
  import numpy
  from ..utils import _check_option, _ensure_int, _validate_type, fill_doc, logger, verbose, warn
  from .constants import FIFF
label_desc: Use image node_id 17 for calling a global function with example usage: _mag_grad_dependent(info) and returns: any