code: def _get_sdpa_extreme_seqlen(func, tensor):
      return int(func(tensor).item())
  
imports: from typing import Tuple
  import torch
  from torch._C import DispatchKey, DispatchKeySet
  from torch._prims_common import is_expandable_to
  from torch.fx.experimental.symbolic_shapes import has_free_symbols
  from torch.utils.weak import WeakTensorKeyDictionary
  from typing import *
label_desc: Use image node_id 2 for calling a global function with example usage: _get_sdpa_extreme_seqlen(func, tensor) and returns: int