code: def _set_inputs(self, inputs):
      super()._set_inputs(inputs)
      inputs_iter = iter(self._inputs)
      if isinstance(self.y_true, ENTITY_TYPE):
          self.y_true = next(inputs_iter)
      if isinstance(self.y_pred, ENTITY_TYPE):
          self.y_pred = next(inputs_iter)
  
file_path: mars/mars/learn/metrics/_check_targets.py
imports: import numpy
  from ...None import opcodes
  from ...None import tensor
  from ...core import ENTITY_TYPE, ExecutableTuple, recursive_tile
  from ...core.context import get_context
  from ...serialization.serializables import AnyField
  from ...tensor.core import TENSOR_TYPE, TensorOrder
  from ..operands import LearnOperand, LearnOperandMixin, OutputType
  from ..utils.multiclass import type_of_target
  from ..utils import check_consistent_length, column_or_1d
label_desc: Use image node_id 2 for calling the CheckTargets obj's underlying member method code with example usage: obj._set_inputs(inputs) without return types