code: def _compute_rank_int(inst, *args, **kwargs):
      """Wrap compute_rank but yield an int."""
      # XXX eventually we should unify how channel types are handled
      # so that we don't need to do this, or we do it everywhere.
      # Using pca=True in compute_whitener might help.
      return sum(compute_rank(inst, *args, **kwargs).values())
  
file_path: mne-python/mne/rank.py
imports: import numpy
  from scipy import linalg
  from ._fiff.meas_info import Info, _simplify_info
  from ._fiff.pick import _picks_by_type, _picks_to_idx, pick_channels_cov, pick_info
  from ._fiff.proj import make_projector
  from .defaults import _handle_default
  from .utils import _apply_scaling_cov, _check_on_missing, _check_rank, _compute_row_norms, _on_missing, _pl, _scaled_array, _undo_scaling_cov, _validate_type, fill_doc, logger, verbose, warn
label_desc: Use image node_id 8 for calling a global function with example usage: _compute_rank_int(inst) and returns: sum