code: def _ensure_op_supports_or_raise(
      exc_type, name: str, op, inp: Inputs
  ) -> None:
      reasons = op.not_supported_reasons(inp)
      if not reasons:
          return
      raise exc_type(
          f"""Operator `{name}` does not support inputs:
  {textwrap.indent(_format_inputs_description(inp), '     ')}
  {_format_not_supported_reasons(op, reasons)}"""
      )
  
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 4 for calling a global function with example usage: _ensure_op_supports_or_raise(exc_type, name, op, inp) without return types