code: def _dispatch_bw(inp: Inputs) -> Type[AttentionBwOpBase]:
      priority_list_ops: List[Type[AttentionBwOpBase]] = [
          flash.BwOp,
          cutlass.BwOp,
          # CUDA illegal memory issues, race conditions etc..
          # triton.BwOp,
          # Deprecated
          small_k.BwOp,
      ]
      if _is_cutlassB_faster_than_flash(inp):
          priority_list_ops.remove(cutlass.BwOp)
          priority_list_ops.insert(0, cutlass.BwOp)
      return _run_priority_list(
          "memory_efficient_attention_backward", priority_list_ops, inp
      )
  
file_path: xformers/xformers/ops/fmha/dispatch.py
imports: import textwrap
  from collections import deque
  from typing import List, Sequence, Type, TypeVar
  from .None import attn_bias, cutlass, decoder, flash, small_k, triton, triton_splitk
  from .common import AttentionBwOpBase, AttentionFwOpBase, Inputs
label_desc: Use image node_id 10 for calling a global function with example usage: _dispatch_bw(inp) and returns: _run_priority_list