code: def set_fused_attn(enable: bool = True, experimental: bool = False):
      global _USE_FUSED_ATTN
      if not _HAS_FUSED_ATTN:
          warnings.warn(
              "This version of pytorch does not have F.scaled_dot_product_attention, fused_attn flag ignored."
          )
          return
      if experimental and enable:
          _USE_FUSED_ATTN = 2
      elif enable:
          _USE_FUSED_ATTN = 1
      else:
          _USE_FUSED_ATTN = 0
  
imports: import os
  import warnings
  from typing import Any, Optional
  import torch
label_desc: Use image node_id 5 for calling a global function with example usage: set_fused_attn(enable, experimental) without return types