code: def test_pattern():
      # Python std lib doc poker hand example
      pattern_0 = neurovault.Pattern(r"[0-9akqj]{5}$")
  
      assert (
          str(pattern_0) == "Pattern(pattern='[0-9akqj]{5}$', flags=0)"
      )
  
      pattern_1 = neurovault.Pattern(r"[0-9akqj]{5}$", re.I)
  
      assert pattern_0 == "ak05q"
      assert pattern_0 != "Ak05q"
      assert pattern_0 != "ak05e"
      assert pattern_1 == "ak05q"
      assert pattern_1 == "Ak05q"
      assert pattern_1 != "ak05e"
  
imports: import hashlib
  import json
  import os
  import re
  import stat
  from urllib import parse
  import numpy
  import pandas
  import pytest
  import requests
  from nilearn._utils.data_gen import generate_fake_fmri
  from nilearn.conftest import _rng
  from nilearn.datasets import neurovault
  from nilearn.image import load_img
label_desc: Use image node_id 23 for calling a global function with example usage: test_pattern() without return types