code: def test_write_file(self):
      lines = ["a", "b", "c"]
      dir = self.mkdtemp()
      foo = os.path.join(dir, "foo")
      write_file(foo, lines)
      content = [line.strip() for line in open(foo).readlines()]
      self.assertEqual(content, lines)
  
file_path: catboost/contrib/tools/python/src/Lib/distutils/tests/test_file_util.py
imports: import unittest
  import os
  import shutil
  from distutils.file_util import move_file, write_file, copy_file
  from distutils import log
  from distutils.tests import support
  from test.test_support import run_unittest
label_desc: Use image node_id 5 for calling the FileUtilTestCase obj's underlying member method code with example usage: obj.test_write_file() without return types