code: def test_data_iv(self):
      message = "`data` must be exactly one-dimensional."
      with pytest.raises(ValueError, match=message):
          stats.fit(self.dist, [[1, 2, 3]], self.shape_bounds_a)
  
      message = "All elements of `data` must be finite numbers."
      with pytest.raises(ValueError, match=message):
          stats.fit(self.dist, [1, 2, 3, np.nan], self.shape_bounds_a)
      with pytest.raises(ValueError, match=message):
          stats.fit(self.dist, [1, 2, 3, np.inf], self.shape_bounds_a)
      with pytest.raises(ValueError, match=message):
          stats.fit(self.dist, ["1", "2", "3"], self.shape_bounds_a)
  
imports: import os
  import numpy
  import numpy.testing
  from numpy.testing import assert_allclose, assert_equal
  import pytest
  from scipy import stats
  from scipy.optimize import differential_evolution
  from .test_continuous_basic import distcont
  from scipy.stats._distn_infrastructure import FitError
  from scipy.stats._distr_params import distdiscrete
  from scipy.stats import goodness_of_fit
label_desc: Use image node_id 3 for calling the TestFit obj's underlying member method code with example usage: obj.test_data_iv() without return types