code: def select(method, sde_type):
      if method == METHODS.euler:
          return Euler
      elif method == METHODS.milstein and sde_type == SDE_TYPES.ito:
          return MilsteinIto
      elif method == METHODS.srk:
          return SRK
      elif method == METHODS.midpoint:
          return Midpoint
      elif method == METHODS.reversible_heun:
          return ReversibleHeun
      elif method == METHODS.adjoint_reversible_heun:
          return AdjointReversibleHeun
      elif method == METHODS.heun:
          return Heun
      elif (
          method == METHODS.milstein
          and sde_type == SDE_TYPES.stratonovich
      ):
          return MilsteinStratonovich
      elif method == METHODS.log_ode_midpoint:
          return LogODEMidpoint
      elif method == METHODS.euler_heun:
          return EulerHeun
      else:
          raise ValueError(
              f"Method '{method}' does not match any known method."
          )
  
file_path: torchsde/torchsde/_core/methods/__init__.py
imports: from .euler import Euler
  from .euler_heun import EulerHeun
  from .heun import Heun
  from .log_ode import LogODEMidpoint
  from .midpoint import Midpoint
  from .milstein import MilsteinIto, MilsteinStratonovich
  from .reversible_heun import ReversibleHeun, AdjointReversibleHeun
  from .srk import SRK
  from ...settings import METHODS, SDE_TYPES
label_desc: Use image node_id 1 for calling a global function with example usage: select(method, sde_type) and returns: Euler, MilsteinIto, SRK, Midpoint, ReversibleHeun, AdjointReversibleHeun, Heun, MilsteinStratonovich, LogODEMidpoint, EulerHeun