code: def is_available(self):
      return hasattr(
          torch.nn.functional, "scaled_dot_product_attention"
      ) and callable(torch.nn.functional.scaled_dot_product_attention)
  
imports: from __future__ import annotations
  import math
  import psutil
  import platform
  import torch
  from torch import einsum
  from ldm.util import default
  from einops import rearrange
  from modules import shared, errors, devices, sub_quadratic_attention
  from modules.hypernetworks import hypernetwork
  import ldm.modules.attention
  import ldm.modules.diffusionmodules.model
  import sgm.modules.attention
  import sgm.modules.diffusionmodules.model
label_desc: Use image node_id 1 for calling the SdOptimizationSdpNoMem obj's underlying member method code with example usage: obj.is_available() and returns: unknown