code: def _get_fs(fs, nyq):
      """
      Utility for replacing the argument 'nyq' (with default 1) with 'fs'.
      """
      if nyq is None and fs is None:
          fs = 2
      elif nyq is not None:
          if fs is not None:
              raise ValueError(
                  "Values cannot be given for both 'nyq' and 'fs'."
              )
          fs = 2 * nyq
      return fs
  
file_path: cusignal/python/cusignal/filter_design/fir_filter_design.py
imports: from math import ceil, log
  import cupy
  import numpy
  from scipy import signal
  from ..windows.windows import get_window
label_desc: Use image node_id 1 for calling a global function with example usage: _get_fs(fs, nyq) and returns: fs