code: def test_nbytes(self):
      # memory savings vs int index
      idx = RangeIndex(0, 1000)
      assert idx.nbytes < Index(idx._values).nbytes / 10
  
      # constant memory usage
      i2 = RangeIndex(0, 10)
      assert idx.nbytes == i2.nbytes
  
imports: import numpy
  import pytest
  from pandas.core.dtypes.common import ensure_platform_int
  import pandas
  from pandas import Index, RangeIndex
  import pandas._testing
label_desc: Use image node_id 25 for calling the TestRangeIndex obj's underlying member method code with example usage: obj.test_nbytes() without return types