code: def pvoigt(x, amplitude=1.0, center=0.0, sigma=1.0, fraction=0.5):
      """Return a 1-dimensional pseudo-Voigt function.
  
      pvoigt(x, amplitude, center, sigma, fraction) =
          amplitude*(1-fraction)*gaussian(x, center, sigma_g) +
          amplitude*fraction*lorentzian(x, center, sigma)
  
      where `sigma_g` (the sigma for the Gaussian component) is
  
          ``sigma_g = sigma / sqrt(2*log(2)) ~= sigma / 1.17741``
  
      so that the Gaussian and Lorentzian components have the same FWHM of
      ``2.0*sigma``.
  
      """
      sigma_g = sigma / sqrt(2 * log2)
      return (1 - fraction) * gaussian(
          x, amplitude, center, sigma_g
      ) + fraction * lorentzian(x, amplitude, center, sigma)
  
imports: from numpy import arctan, copysign, cos, exp, isclose, isnan, log, log1p, maximum, minimum, pi, real, sin, sqrt, where
  from scipy.special import betaln
  from scipy.special import erf, erfc
  from scipy.special import gamma
  from scipy.special import loggamma
  from scipy.special import wofz
label_desc: Use image node_id 7 for calling a global function with example usage: pvoigt(x, amplitude, center, sigma, fraction) and returns: unknown