code: def _set_inputs(self, inputs):
      super()._set_inputs(inputs)
      if self.sample_weight is not None:
          self.sample_weight = inputs[-1]
  
file_path: mars/mars/learn/utils/sparsefuncs.py
imports: from typing import Optional
  import numpy
  from ...None import opcodes, tensor
  from ...core import OutputType, recursive_tile
  from ...serialization.serializables import Int16Field, ReferenceField
  from ...utils import has_unknown_shape
  from ..operands import LearnOperand, LearnOperandMixin
label_desc: Use image node_id 1 for calling the LearnCountNonzero obj's underlying member method code with example usage: obj._set_inputs(inputs) without return types