code: def lmom_ratios(self, *args, nmom=5, **kwds):
          
          if nmom > 20:
              return ValueError("Parameter nmom too large. Max of 20.")
  
          shapes, loc, scale = self._parse_args(*args, **kwds)
  
          if scale <= 0:
              return ValueError("Invalid scale parameter.")
  
          return self._lmom_ratios(*shapes, loc=loc, scale=scale, nmom=nmom)
docs: Compute the distribution's L-moment ratios, e.g. l1, l2, t3, t4, ..
  
          :param args: Distribution parameters in order of shape(s), loc, scale
          :type args: float
          :param nmom: Number of moments to calculate
          :type nmom: int
          :param kwds: Distribution parameters as named arguments. See :attr:`rv_continous.shapes` for names of shape
                       parameters
          :type kwds: float
          :returns: List of L-moment ratios
          :rtype: list