code: def test_readlines():
      # Arrange
      for bytesmode in (True, False):
          expected = [
              "This is line 1\n",
              "This is line 2\n",
              "This is line 3\n",
              "This is line 4\n",
              "This is line 5\n",
              "This is line 6\n",
              "This is line 7\n",
              "This is line 8\n",
          ]
          with open(TEST_FILE, "rb" if bytesmode else "r") as fh:
              container = ContainerIO.ContainerIO(fh, 0, 120)
  
              # Act
              data = container.readlines()
  
              # Assert
              if bytesmode:
                  data = [line.decode() for line in data]
              assert data == expected
  
file_path: pillow-simd/Tests/test_file_container.py
imports: from PIL import ContainerIO, Image
  from .helper import hopper
label_desc: Use image node_id 10 for calling a global function with example usage: test_readlines() without return types