code: def _is_profiled() -> bool:
      # Return true if we are currently running with a xformers profiler activated.
      try:
          from xformers.profiler import profiler
      except ImportError:
          return False
      return profiler._Profiler._CURRENT_PROFILER is not None
  
imports: import typing
  from einops import rearrange
  import torch
  import torch.nn
  from torch.nn import functional
  from torch.utils.checkpoint import checkpoint
  from xformers import ops
  from .rope import RotaryEmbedding
  from .streaming import StreamingModule
label_desc: Use image node_id 3 for calling a global function with example usage: _is_profiled() and returns: unknown, False