code: def test_alibi_pattern():
      mask = AP.alibi_pattern(1e-3, (16, 128, 128))
      # Minor, check that all the top left corners are True
      assert torch.sum(mask[:, 0, 0]) == 16
  
imports: import itertools
  import pytest
  import torch
  import xformers.components.attention.attention_patterns
  from xformers.components.attention.sparsity_config import BigBirdSparsityConfig, BSLongformerSparsityConfig, DenseSparsityConfig, FixedSparsityConfig, VariableSparsityConfig
label_desc: Use image node_id 15 for calling a global function with example usage: test_alibi_pattern() without return types