code: def _mode(a, axis=0):
      if sp_version >= parse_version("1.9.0"):
          return scipy.stats.mode(a, axis=axis, keepdims=True)
      return scipy.stats.mode(a, axis=axis)
  
file_path: imbalanced-learn/imblearn/utils/fixes.py
imports: import functools
  import sys
  import numpy
  import scipy
  import scipy.stats
  import sklearn
  from sklearn.utils.fixes import parse_version
  from .._config import config_context, get_config
label_desc: Use image node_id 1 for calling a global function with example usage: _mode(a, axis) and returns: scipy, scipy