class_docstr: ClsSoftmaxCost.
  
  Args:
      weight (int | float, optional): loss_weight
class_docstr_tok: ["ClsSoftmaxCost",".","Args",":","weight","(","int","|","float",",","optional",")",":","loss_weight"]
code: def __init__(self, weight=1.0):
      self.weight = weight
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import paddle
  import paddle.nn.functional
  from ppdet.core.workspace import register
label_desc: Use image node_id 1 to create a new ClassificationCost object  with example: obj = ClassificationCost(weight)