parameters: (b, a, pairing='nearest')
return_statement: return zpk2sos(*tf2zpk(b, a), pairing=pairing)
docstring: Return second-order sections from transfer function representation
  
      Parameters
      ----------
      b : array_like
          Numerator polynomial coefficients.
      a : array_like
          Denominator polynomial coefficients.
      pairing : {'nearest', 'keep_odd'}, optional
          The method to use to combine pairs of poles and zeros into sections.
          See `zpk2sos`.
  
      Returns
      -------
      sos : ndarray
          Array of second-order filter coefficients, with shape
          ``(n_sections, 6)``. See `sosfilt` for the SOS filter format
          specification.
  
      See Also
      --------
      zpk2sos, sosfilt
  
      Notes
      -----
      It is generally discouraged to convert from TF to SOS format, since doing
      so usually will not improve numerical precision errors. Instead, consider
      designing filters in ZPK format and converting directly to SOS. TF is
      converted to SOS by first converting to ZPK format, then converting
      ZPK to SOS.
  
      .. versionadded:: 0.16.0
docstring_summary: Return second-order sections from transfer function representation
docstring_tokens: Return second - order sections from transfer function representation
function: def tf2sos(b, a, pairing='nearest'):
      """
      Return second-order sections from transfer function representation
  
      Parameters
      ----------
      b : array_like
          Numerator polynomial coefficients.
      a : array_like
          Denominator polynomial coefficients.
      pairing : {'nearest', 'keep_odd'}, optional
          The method to use to combine pairs of poles and zeros into sections.
          See `zpk2sos`.
  
      Returns
      -------
      sos : ndarray
          Array of second-order filter coefficients, with shape
          ``(n_sections, 6)``. See `sosfilt` for the SOS filter format
          specification.
  
      See Also
      --------
      zpk2sos, sosfilt
  
      Notes
      -----
      It is generally discouraged to convert from TF to SOS format, since doing
      so usually will not improve numerical precision errors. Instead, consider
      designing filters in ZPK format and converting directly to SOS. TF is
      converted to SOS by first converting to ZPK format, then converting
      ZPK to SOS.
  
      .. versionadded:: 0.16.0
      """
      return zpk2sos(*tf2zpk(b, a), pairing=pairing)
function_tokens: def tf2sos ( b , a , pairing = 'nearest' ) : return zpk2sos ( * tf2zpk ( b , a ) , pairing = pairing )