code: def test_invalid_constructor_args(self):
      with pytest.raises(ValueError, match="must be a one-dimensional"):
          CensoredData(uncensored=[[1, 2, 3]])
      with pytest.raises(ValueError, match="must be a one-dimensional"):
          CensoredData(left=[[1, 2, 3]])
      with pytest.raises(ValueError, match="must be a one-dimensional"):
          CensoredData(right=[[1, 2, 3]])
      with pytest.raises(ValueError, match="must be a two-dimensional"):
          CensoredData(interval=[[1, 2, 3]])
  
      with pytest.raises(ValueError, match="must not contain nan"):
          CensoredData(uncensored=[1, np.nan, 2])
      with pytest.raises(ValueError, match="must not contain nan"):
          CensoredData(left=[1, np.nan, 2])
      with pytest.raises(ValueError, match="must not contain nan"):
          CensoredData(right=[1, np.nan, 2])
      with pytest.raises(ValueError, match="must not contain nan"):
          CensoredData(interval=[[1, np.nan], [2, 3]])
  
      with pytest.raises(
          ValueError, match="both values must not be infinite"
      ):
          CensoredData(interval=[[1, 3], [2, 9], [np.inf, np.inf]])
  
      with pytest.raises(
          ValueError, match="left value must not exceed the right"
      ):
          CensoredData(interval=[[1, 0], [2, 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 8 for calling the TestCensoredData obj's underlying member method code with example usage: obj.test_invalid_constructor_args() without return types