parameters: (a, axes=None)
return_statement: return Blob(PythonWrapper.blob_sum(a._internal, axes))
docstring: Calculates sum of blob elements along provided axes.
      If axes=None calculates the total sum.
docstring_summary: Calculates sum of blob elements along provided axes.
      If axes=None calculates the total sum.
docstring_tokens: Calculates sum of blob elements along provided axes . If axes = None calculates the total sum .
function: def sum(a, axes=None):
      """Calculates sum of blob elements along provided axes.
      If axes=None calculates the total sum.
      """
      if not type(a) is Blob:
          raise ValueError('`a` should be neoml.Blob.')
  
      if a.size == 0:
          raise ValueError("The blob shouldn't be empty.")
  
      axes = numpy.array([] if axes is None else axes, dtype=numpy.int32)
      if not neoml.Utils.check_axes(axes):
          raise ValueError("`axes` should be unique and in range [0, 6].")
  
      return Blob(PythonWrapper.blob_sum(a._internal, axes))
function_tokens: def sum ( a , axes = None ) : if not type ( a ) is Blob : raise ValueError ( '`a` should be neoml.Blob.' ) if a . size == 0 : raise ValueError ( "The blob shouldn't be empty." ) axes = numpy . array ( [ ] if axes is None else axes , dtype = numpy . int32 ) if not neoml . Utils . check_axes ( axes ) : raise ValueError ( "`axes` should be unique and in range [0, 6]." ) return Blob ( PythonWrapper . blob_sum ( a . _internal , axes ) )