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
    dtype: the data type for tensor conversions.
  
  Returns:
    maximum class weighting as tensor scalar
docstr_tok: ["the","maximum","weighting","in","class","weights","(","max","value",")","as","a","scalar","tensor",".","Args",":","class_weight",":","class","weights","used","dtype",":","the","data","type","for","tensor","conversions",".","Returns",":","maximum","class","weighting","as","tensor","scalar"]
code: def max_class_weight(self, class_weight, dtype=tf.float32):
      """the maximum weighting in class weights (max value) as a scalar tensor.
  
      Args:
        class_weight: class weights used
        dtype: the data type for tensor conversions.
  
      Returns:
        maximum class weighting as tensor scalar
      """
      if class_weight is None:
          return 1
      raise NotImplementedError("")
  
imports: import unittest
  from absl.testing import parameterized
  import tensorflow.compat.v1
  from tensorflow.compat.v1.python import ops
  from tensorflow.compat.v1.python.framework import test_util
  from tensorflow.compat.v1.python.keras import keras_parameterized
  from tensorflow.compat.v1.python.keras import losses
  from tensorflow.compat.v1.python.keras.initializers import constant
  from tensorflow.compat.v1.python.keras.models import Model
  from tensorflow.compat.v1.python.keras.optimizer_v2.optimizer_v2 import OptimizerV2
  from tensorflow.compat.v1.python.keras.regularizers import L1L2
  from tensorflow.compat.v1.python.platform import test
  from tensorflow_privacy.privacy.bolt_on import optimizers
  from tensorflow_privacy.privacy.bolt_on.losses import StrongConvexMixin
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, dtype) and returns: int