code: def write_test_files(test_dir, names=None):
      """Write test files in test_dir using the names list."""
      names = names or range(10)
      for i in names:
          with open(os.path.join(test_dir, str(i)), "wb") as out:
              out.write(b"")
  
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 2 for calling a global function with example usage: write_test_files(test_dir, names) without return types