code: def testPrunesWithConstantSparsity(self):
      sparsity = pruning_schedule.ConstantSparsity(0.5, 100, 200, 10)
  
      step_100 = tf.Variable(100)
      step_110 = tf.Variable(110)
      step_200 = tf.Variable(200)
      compat.initialize_variables(self)
  
      self.assertAllClose(0.5, self.evaluate(sparsity(step_100))[1])
      self.assertAllClose(0.5, self.evaluate(sparsity(step_110))[1])
      self.assertAllClose(0.5, self.evaluate(sparsity(step_200))[1])
  
imports: from absl.testing import parameterized
  import tensorflow
  from tensorflow_model_optimization.python.core.keras import compat
  from tensorflow_model_optimization.python.core.quantization.keras import utils
  from tensorflow_model_optimization.python.core.sparsity.keras import pruning_schedule
label_desc: Use image node_id 2 for calling the ConstantSparsityTest obj's underlying member method code with example usage: obj.testPrunesWithConstantSparsity() without return types