code: def _decode_online_filters(info, highpass, lowpass):
      """Decode low/high-pass filters that are applied online."""
      if np.all(highpass == highpass[0]):
          if highpass[0] == "NaN":
              # Placeholder for future use. Highpass set in _empty_info.
              pass
          else:
              hp = float(highpass[0])
              info["highpass"] = hp
      else:
          info["highpass"] = float(np.max(highpass))
          warn(
              "Channels contain different highpass filters. Highest filter "
              "setting will be stored."
          )
  
      if np.all(lowpass == lowpass[0]):
          if lowpass[0] in ("NaN", "0", "0.0"):
              # Placeholder for future use. Lowpass set in _empty_info.
              pass
          else:
              info["lowpass"] = float(lowpass[0])
      else:
          info["lowpass"] = float(np.min(lowpass))
          warn(
              "Channels contain different lowpass filters. Lowest filter "
              "setting will be stored."
          )
  
file_path: mne-python/mne/io/nsx/nsx.py
imports: import os
  from datetime import datetime, timezone
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _empty_info
  from ..._fiff.utils import _file_size, _read_segments_file
  from ...annotations import Annotations
  from ...utils import fill_doc, logger, warn
  from ..base import BaseRaw, _get_scaling
label_desc: Use image node_id 5 for calling a global function with example usage: _decode_online_filters(info, highpass, lowpass) without return types