class_docstr: Triplet loss function.
class_docstr_tok: ["Triplet","loss","function","."]
code: def check_type_forward(self, in_types):
      type_check._argname(in_types, ("anchor", "positive", "negative"))
  
      type_check.expect(
          in_types[0].dtype.kind == "f",
          in_types[0].dtype == in_types[1].dtype,
          in_types[0].dtype == in_types[2].dtype,
          in_types[0].shape == in_types[1].shape,
          in_types[0].shape == in_types[2].shape,
          in_types[0].shape[0] > 0,
      )
  
file_path: chainer/chainer/functions/loss/triplet.py
imports: import chainer
  from chainer import backend
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 2 for calling the Triplet obj's underlying member method code with example usage: obj.check_type_forward(in_types) without return types