code: def test_find_offsets(self):
      from fairseq.file_chunker_utils import find_offsets
  
      offsets = find_offsets(self._tmpfile, self._num_splits)
      self.assertEqual(len(offsets), self._num_splits + 1)
      (zero, *real_offsets, last) = offsets
      self.assertEqual(zero, 0)
      for i, o in enumerate(real_offsets):
          self.assertEqual(
              o,
              self._num_bytes
              + (
                  (i + 1)
                  * self._num_bytes
                  * self._num_lines
                  / self._num_splits
              ),
          )
      self.assertEqual(last, self._num_bytes * self._num_lines)
  
file_path: fairseq/tests/test_file_chunker_utils.py
imports: import os
  import shutil
  import tempfile
  import unittest
  from typing import Optional
label_desc: Use image node_id 3 for calling the TestFileChunker obj's underlying member method code with example usage: obj.test_find_offsets() without return types