docstr: Regression test for numpy type promotion issue https://github.com/numpy/numpy/issues/5745
docstr_tok: ["Regression","test","for","numpy","type","promotion","issue","https",":","\/\/github.com\/numpy\/numpy\/issues\/5745"]
code: def test_4billion_tokens(self):
      """Regression test for numpy type promotion issue https://github.com/numpy/numpy/issues/5745"""
      data = [
          torch.tensor(list(range(10000)), dtype=torch.long)
      ] * 430000
      ds = self._build_dataset(
          data, block_size=6, pad=0, eos=1, break_mode="complete"
      )
      ds[-1]  # __getitem__ works
      start, end = ds.slice_indices[-1]
      assert (
          end > 4294967295
      )  # data must be sufficiently large to overflow uint32
      assert not isinstance(end + 1, float)
  
file_path: fairseq/tests/test_token_block_dataset.py
imports: import unittest
  import tests.utils
  import torch
  from fairseq.data import TokenBlockDataset
label_desc: Use image node_id 5 for calling the TestTokenBlockDataset obj's underlying member method code with example usage: obj.test_4billion_tokens() without return types