code: def test_chunk_file(self):
      tmp_work_dir = tempfile.mkdtemp()
      try:
          file_path = os.path.join(tmp_work_dir, "file.txt")
          with open(file_path, "w+") as fout:
              fout.write("\n".join([str(i) for i in range(10)]))
          output_paths = chunk_file(file_path, 3, tmp_work_dir)
  
          self.assertEqual(len(output_paths), 3)
          self.assertEqual(
              open(output_paths[0]).readlines(),
              ["0\n", "1\n", "2\n", "3\n"],
          )
          self.assertEqual(
              open(output_paths[1]).readlines(),
              ["4\n", "5\n", "6\n", "7\n"],
          )
          self.assertEqual(
              open(output_paths[2]).readlines(), ["8\n", "9\n"]
          )
      finally:
          shutil.rmtree(tmp_work_dir)
  
imports: import json
  import os
  import random
  import shutil
  import tempfile
  import unittest
  import numpy
  import torch
  from pytext.utils import recursive_map, round_seq, set_random_seeds
  from pytext.utils.data import align_slot_labels, merge_token_labels_to_slot, strip_bio_prefix, unkify
  from pytext.utils.distributed import get_shard_range
  from pytext.utils.file_io import chunk_file, PathManager
  from pytext.utils.meter import TimeMeter
  from pytext.utils.test import import_tests_module
label_desc: Use image node_id 10 for calling the UtilTest obj's underlying member method code with example usage: obj.test_chunk_file() without return types