code: def monotonic_index(start, end, dtype="int64", closed="right"):
      return IntervalIndex.from_breaks(
          np.arange(start, end, dtype=dtype), closed=closed
      )
  
file_path: pandas/pandas/tests/indexes/interval/test_setops.py
imports: import numpy
  import pytest
  from pandas import Index, IntervalIndex, Timestamp, interval_range
  import pandas._testing
label_desc: Use image node_id 1 for calling a global function with example usage: monotonic_index(start, end, dtype, closed) and returns: IntervalIndex