code: def test_interval_array_equal_periods_mismatch():
      kwargs = {"start": 0}
      arr1 = interval_range(periods=5, **kwargs).values
      arr2 = interval_range(periods=6, **kwargs).values
  
      msg = """\
  IntervalArray.left are different
  
  IntervalArray.left shapes are different
  \\[left\\]:  \\(5,\\)
  \\[right\\]: \\(6,\\)"""
  
      with pytest.raises(AssertionError, match=msg):
          tm.assert_interval_array_equal(arr1, arr2)
  
imports: import pytest
  from pandas import interval_range
  import pandas._testing
label_desc: Use image node_id 3 for calling a global function with example usage: test_interval_array_equal_periods_mismatch() without return types