class_docstr: Takes an array and builds cumulative distribution function(CDF).
class_docstr_tok: ["Takes","an","array","and","builds","cumulative","distribution","function","(","CDF",")","."]
code: def get_cdf_value(self, given_weight):
      mask = tf.less_equal(self.weights, given_weight)
      less_than = tf.cast(tf.math.count_nonzero(mask), dtype=tf.float32)
      return less_than / tf.size(self.weights, out_type=tf.float32)
  
imports: import abc
  import six
  import tensorflow
  from tensorflow.python.ops import clustering_ops
  from tensorflow_model_optimization.python.core.clustering.keras import cluster_config
label_desc: Use image node_id 2 for calling the TFCumulativeDistributionFunction obj's underlying member method code with example usage: obj.get_cdf_value(given_weight) and returns: unknown