code: def test_setitem_scalar(self, val, missing_value):
      arr = LabelArray(self.strs, missing_value=missing_value)
  
      if not arr.has_label(val):
          self.assertTrue(
              (val == "not in the array")
              or (val is None and missing_value is not None)
          )
          for slicer in [(0, 0), (0, 1), 1]:
              with self.assertRaises(ValueError):
                  arr[slicer] = val
          return
  
      arr[0, 0] = val
      self.assertEqual(arr[0, 0], val)
  
      arr[0, 1] = val
      self.assertEqual(arr[0, 1], val)
  
      arr[1] = val
      if val == missing_value:
          self.assertTrue(arr.is_missing()[1].all())
      else:
          self.assertTrue((arr[1] == val).all())
          self.assertTrue((arr[1].as_string_array() == val).all())
  
      arr[:, -1] = val
      if val == missing_value:
          self.assertTrue(arr.is_missing()[:, -1].all())
      else:
          self.assertTrue((arr[:, -1] == val).all())
          self.assertTrue((arr[:, -1].as_string_array() == val).all())
  
      arr[:] = val
      if val == missing_value:
          self.assertTrue(arr.is_missing().all())
      else:
          self.assertFalse(arr.is_missing().any())
          self.assertTrue((arr == val).all())
  
imports: from itertools import product
  from operator import eq, ne
  import warnings
  import numpy
  from toolz import take
  from catalyst.lib.labelarray import LabelArray
  from catalyst.testing import check_arrays, parameter_space, CatalystTestCase
  from catalyst.testing.predicates import assert_equal
  from catalyst.utils.compat import unicode
label_desc: Use image node_id 12 for calling the LabelArrayTestCase obj's underlying member method code with example usage: obj.test_setitem_scalar(val, missing_value) without return types