code: def test_word_completer_match_middle():
      completer = WordCompleter(
          ["abc", "def", "abca"], match_middle=True
      )
      completions = completer.get_completions(
          Document("bc"), CompleteEvent()
      )
      assert [c.text for c in completions] == ["abc", "abca"]
  
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 14 for calling a global function with example usage: test_word_completer_match_middle() without return types