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("".encode("UTF-8"))
  
file_path: catboost/contrib/python/prompt-toolkit/py2/tests/test_contrib.py
imports: from __future__ import unicode_literals, absolute_import, print_function
  import os
  import shutil
  import tempfile
  from contextlib import contextmanager
  from six import text_type
  from prompt_toolkit.completion import CompleteEvent
  from prompt_toolkit.document import Document
  from prompt_toolkit.contrib.completers.filesystem import PathCompleter
label_desc: Use image node_id 2 for calling a global function with example usage: write_test_files(test_dir, names) without return types