code: def _format_data(self):
      # TODO: integrate with categorical and make generic
      # name argument is unused here; just for compat with base / categorical
      n = len(self)
      max_seq_items = min(
          (get_option("display.max_seq_items") or n) // 10, 10
      )
  
      formatter = str
  
      if n == 0:
          summary = "[]"
      elif n == 1:
          first = formatter(self[0])
          summary = "[{first}]".format(first=first)
      elif n == 2:
          first = formatter(self[0])
          last = formatter(self[-1])
          summary = "[{first}, {last}]".format(first=first, last=last)
      else:
          if n > max_seq_items:
              n = min(max_seq_items // 2, 10)
              head = [formatter(x) for x in self[:n]]
              tail = [formatter(x) for x in self[-n:]]
              summary = "[{head} ... {tail}]".format(
                  head=", ".join(head), tail=", ".join(tail)
              )
          else:
              tail = [formatter(x) for x in self]
              summary = "[{tail}]".format(tail=", ".join(tail))
  
      return summary
  
imports: from operator import le, lt
  import textwrap
  import numpy
  from pandas._libs.interval import Interval, IntervalMixin, intervals_to_interval_bounds
  from pandas.compat import add_metaclass
  from pandas.compat.numpy import function
  from pandas.util._decorators import Appender
  from pandas.util._doctools import _WritableDoc
  from pandas.core.dtypes.cast import maybe_convert_platform
  from pandas.core.dtypes.common import is_categorical_dtype, is_datetime64_any_dtype, is_float_dtype, is_integer_dtype, is_interval, is_interval_dtype, is_scalar, is_string_dtype, is_timedelta64_dtype, pandas_dtype
  from pandas.core.dtypes.dtypes import IntervalDtype
  from pandas.core.dtypes.generic import ABCDatetimeIndex, ABCInterval, ABCIntervalIndex, ABCPeriodIndex, ABCSeries
  from pandas.core.dtypes.missing import isna, notna
  from pandas.core.arrays.base import ExtensionArray, _extension_array_shared_docs
  from pandas.core.arrays.categorical import Categorical
  import pandas.core.common
  from pandas.core.config import get_option
  from pandas.core.indexes.base import Index, ensure_index
label_desc: Use image node_id 25 for calling the IntervalArray obj's underlying member method code with example usage: obj._format_data() and returns: summary