docstr: Compute a linear multistep coefficient
docstr_tok: ["Compute","a","linear","multistep","coefficient"]
code: def get_lms_coefficient(self, order, t, current_order):
      """
      Compute a linear multistep coefficient
      """
  
      def lms_derivative(tau):
          prod = 1.0
          for k in range(order):
              if current_order == k:
                  continue
              prod *= (tau - self.sigmas[t - k]) / (
                  self.sigmas[t - current_order] - self.sigmas[t - k]
              )
          return prod
  
      integrated_coeff = integrate.quad(
          lms_derivative,
          self.sigmas[t],
          self.sigmas[t + 1],
          epsrel=1e-4,
      )[0]
  
      return integrated_coeff
  
file_path: PaddleHub/modules/image/text_to_image/stable_diffusion_waifu/diffusers/schedulers/scheduling_lms_discrete.py
imports: from typing import Union
  import numpy
  import paddle
  from scipy import integrate
  from ..configuration_utils import ConfigMixin
  from ..configuration_utils import register_to_config
  from .scheduling_utils import SchedulerMixin
label_desc: Use image node_id 2 for calling the LMSDiscreteScheduler obj's underlying member method code with example usage: obj.get_lms_coefficient(order, t, current_order) and returns: integrated_coeff, prod