class_docstr: Test loss function for testing BoltOn model.
class_docstr_tok: ["Test","loss","function","for","testing","BoltOn","model","."]
docstr: the maximum weighting in class weights (max value) as a scalar tensor.
  
  Args:
    class_weight: class weights used
  
  Returns:
    maximum class weighting as tensor scalar
code: def max_class_weight(self, class_weight):
      """the maximum weighting in class weights (max value) as a scalar tensor.
  
      Args:
        class_weight: class weights used
  
      Returns:
        maximum class weighting as tensor scalar
      """
      if class_weight is None:
          return 1
      raise ValueError("")
  
imports: from absl.testing import parameterized
  import tensorflow.compat.v1
  from tensorflow.compat.v1.python.framework import ops
  from tensorflow.compat.v1.python.keras import keras_parameterized
  from tensorflow.compat.v1.python.keras import losses
  from tensorflow.compat.v1.python.keras.optimizer_v2.optimizer_v2 import OptimizerV2
  from tensorflow.compat.v1.python.keras.regularizers import L1L2
  from tensorflow_privacy.privacy.bolt_on import models
  from tensorflow_privacy.privacy.bolt_on.losses import StrongConvexMixin
  from tensorflow_privacy.privacy.bolt_on.optimizers import BoltOn
label_desc: Use image node_id 7 for calling the TestLoss obj's underlying member method code with example usage: obj.max_class_weight(class_weight) and returns: int