class_docstr: Multi-headed attention.
  
  See "Attention Is All You Need" for more details.
class_docstr_tok: ["Multi-headed","attention",".","See","``","Attention","Is","All","You","Need","''","for","more","details","."]
code: def apply_sparse_mask(
      self, attn_weights, tgt_len: int, src_len: int, bsz: int
  ):
      return attn_weights
  
imports: import math
  from typing import Dict, List, Optional, Tuple
  import torch
  import torch.nn.functional
  from torch import Tensor, nn
  from torch.nn import Parameter
  from fairseq import utils
  from fairseq.modules.fairseq_dropout import FairseqDropout
  from fairseq.modules.quant_noise import quant_noise
  from fairseq.models.fairseq_incremental_decoder import FairseqIncrementalDecoder
label_desc: Use image node_id 17 for calling the MultiheadAttention obj's underlying member method code with example usage: obj.apply_sparse_mask(attn_weights, tgt_len, src_len, bsz) and returns: attn_weights