code: def math_sdp_enabled():
      r"""
      .. warning:: This flag is beta and subject to change.
  
      Returns whether math scaled dot product attention is enabled or not.
      """
      return torch._C._get_math_sdp_enabled()
  
imports: import contextlib
  from typing import Union
  import torch
  from torch._C import _SDPAParams, _SDPBackend
label_desc: Use image node_id 7 for calling a global function with example usage: math_sdp_enabled() and returns: torch