code: def __init__(self, sde, **kwargs):
      if isinstance(sde, adjoint_sde.AdjointSDE):
          raise ValueError(
              "Log-ODE schemes cannot be used for adjoint SDEs, because they require "
              "direct access to the diffusion, whilst adjoint SDEs rely on a more efficient "
              "diffusion-vector product. Use a different method instead."
          )
      self.strong_order = (
          0.5 if sde.noise_type == NOISE_TYPES.general else 1.0
      )
      super(LogODEMidpoint, self).__init__(sde=sde, **kwargs)
  
imports: from ..None import adjoint_sde
  from ..None import base_solver
  from ...settings import SDE_TYPES, NOISE_TYPES, LEVY_AREA_APPROXIMATIONS
label_desc: Use image node_id 1 to create a new LogODEMidpoint object from inherited base classes: base_solver with example: obj = LogODEMidpoint(sde)