code: def testScalarMultiplyOperationandScalarAddOperation(self):
      scalar = 2.0
      scalar_multiply_operation = mtf.ScalarMultiplyOperation(
          self.x, scalar
      )
      self.assertEqual(
          scalar_multiply_operation.splittable_dims,
          frozenset(["a", "b"]),
      )
      self.assertEqual(
          scalar_multiply_operation.unsplittable_dims, frozenset()
      )
  
      scalar_add_operation = mtf.ScalarAddOperation(self.x, scalar)
      self.assertEqual(
          scalar_add_operation.splittable_dims, frozenset(["a", "b"])
      )
      self.assertEqual(
          scalar_add_operation.unsplittable_dims, frozenset()
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import mesh_tensorflow
  from mesh_tensorflow import test_utils
  import numpy
  import tensorflow.compat.v1
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 4 for calling the OperationSplittabilityTest obj's underlying member method code with example usage: obj.testScalarMultiplyOperationandScalarAddOperation() without return types