code: def test_read_text_byte_range(datadir):
      chess_file = str(datadir) + "/chess.pgn"
      delimiter = "1."
  
      with open(chess_file, "r") as f:
          data = f.read()
          content = data.split(delimiter)
  
      # Since Python split removes the delimiter and read_text does
      # not we need to add it back to the 'content'
      expected = cudf.Series(
          [
              c + delimiter if i < (len(content) - 1) else c
              for i, c in enumerate(content)
          ]
      )
  
      byte_range_size = (len(data) // 3) + (len(data) % 3 != 0)
  
      actual_0 = cudf.read_text(
          chess_file,
          delimiter=delimiter,
          byte_range=[byte_range_size * 0, byte_range_size],
      )
      actual_1 = cudf.read_text(
          chess_file,
          delimiter=delimiter,
          byte_range=[byte_range_size * 1, byte_range_size],
      )
      actual_2 = cudf.read_text(
          chess_file,
          delimiter=delimiter,
          byte_range=[byte_range_size * 2, byte_range_size],
      )
  
      actual = cudf.concat(
          [actual_0, actual_1, actual_2], ignore_index=True
      )
  
      assert_eq(expected, actual)
  
file_path: cudf/python/cudf/cudf/tests/input_output/test_text.py
imports: from io import StringIO
  import pytest
  import cudf
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 3 for calling a global function with example usage: test_read_text_byte_range(datadir) without return types