code: def test_bad_arg_ivw(self) -> None:
      with self.assertRaises(ValueError):
          inverse_variance_weight(
              np.array([0]), np.array([1]), conflicting_noiseless="foo"
          )
      with self.assertRaises(ValueError):
          inverse_variance_weight(np.array([1, 2]), np.array([1]))
  
imports: from itertools import product
  import numpy
  import pandas
  from ax.core.data import Data
  from ax.utils.common.testutils import TestCase
  from ax.utils.stats.statstools import inverse_variance_weight, marginal_effects, relativize, relativize_data, unrelativize
label_desc: Use image node_id 1 for calling the InverseVarianceWeightingTest obj's underlying member method code with example usage: obj.test_bad_arg_ivw() without return types