class_docstr: Tests specific to IntervalIndex with integer-like subtype
class_docstr_tok: ["Tests","specific","to","IntervalIndex","with","integer-like","subtype"]
code: def test_subtype_integer(self, subtype_start, subtype_end):
      index = IntervalIndex.from_breaks(
          np.arange(100, dtype=subtype_start)
      )
      dtype = IntervalDtype(subtype_end, index.closed)
      result = index.astype(dtype)
      expected = IntervalIndex.from_arrays(
          index.left.astype(subtype_end),
          index.right.astype(subtype_end),
          closed=index.closed,
      )
      tm.assert_index_equal(result, expected)
  
imports: import re
  import numpy
  import pytest
  from pandas.core.dtypes.dtypes import CategoricalDtype, IntervalDtype
  from pandas import CategoricalIndex, Index, IntervalIndex, NaT, Timedelta, Timestamp, interval_range
  import pandas._testing
label_desc: Use image node_id 3 for calling the TestIntSubtype obj's underlying member method code with example usage: obj.test_subtype_integer(subtype_start, subtype_end) without return types