code: def test_interval_to_other_types(self):
      # The interval parameter can represent uncensored and
      # left- or right-censored data.  Test the conversion of such
      # an example to the canonical form in which the different
      # types have been split into the separate arrays.
      interval = np.array(
          [
              [0, 1],  # interval-censored
              [2, 2],  # not censored
              [3, 3],  # not censored
              [9, np.inf],  # right-censored
              [8, np.inf],  # right-censored
              [-np.inf, 0],  # left-censored
              [1, 2],
          ]
      )  # interval-censored
      data = CensoredData(interval=interval)
      assert_equal(data._uncensored, [2, 3])
      assert_equal(data._left, [0])
      assert_equal(data._right, [9, 8])
      assert_equal(data._interval, [[0, 1], [1, 2]])
  
file_path: scipy/scipy/stats/tests/test_censored_data.py
imports: import pytest
  import numpy
  from numpy.testing import assert_equal, assert_array_equal
  from scipy.stats import CensoredData
label_desc: Use image node_id 6 for calling the TestCensoredData obj's underlying member method code with example usage: obj.test_interval_to_other_types() without return types