code: def test_fuzzy_completer():
      collection = [
          "migrations.py",
          "django_migrations.py",
          "django_admin_log.py",
          "api_user.doc",
          "user_group.doc",
          "users.txt",
          "accounts.txt",
          "123.py",
          "test123test.py",
      ]
      completer = FuzzyWordCompleter(collection)
      completions = completer.get_completions(
          Document("txt"), CompleteEvent()
      )
      assert [c.text for c in completions] == [
          "users.txt",
          "accounts.txt",
      ]
  
      completions = completer.get_completions(
          Document("djmi"), CompleteEvent()
      )
      assert [c.text for c in completions] == [
          "django_migrations.py",
          "django_admin_log.py",
      ]
  
      completions = completer.get_completions(
          Document("mi"), CompleteEvent()
      )
      assert [c.text for c in completions] == [
          "migrations.py",
          "django_migrations.py",
          "django_admin_log.py",
      ]
  
      completions = completer.get_completions(
          Document("user"), CompleteEvent()
      )
      assert [c.text for c in completions] == [
          "user_group.doc",
          "users.txt",
          "api_user.doc",
      ]
  
      completions = completer.get_completions(
          Document("123"), CompleteEvent()
      )
      assert [c.text for c in completions] == [
          "123.py",
          "test123test.py",
      ]
  
      completions = completer.get_completions(
          Document("miGr"), CompleteEvent()
      )
      assert [c.text for c in completions] == [
          "migrations.py",
          "django_migrations.py",
      ]
  
      # Multiple words ending with space. (Accept all options)
      completions = completer.get_completions(
          Document("test "), CompleteEvent()
      )
      assert [c.text for c in completions] == collection
  
      # Multiple words. (Check last only.)
      completions = completer.get_completions(
          Document("test txt"), CompleteEvent()
      )
      assert [c.text for c in completions] == [
          "users.txt",
          "accounts.txt",
      ]
  
imports: from __future__ import annotations
  import os
  import re
  import shutil
  import tempfile
  from contextlib import contextmanager
  from prompt_toolkit.completion import CompleteEvent, FuzzyWordCompleter, NestedCompleter, PathCompleter, WordCompleter, merge_completers
  from prompt_toolkit.document import Document
label_desc: Use image node_id 18 for calling a global function with example usage: test_fuzzy_completer() without return types