class_docstr: A helper class to build consecutive ONNX nodes.
class_docstr_tok: ["A","helper","class","to","build","consecutive","ONNX","nodes","."]
docstr: Creates a new ONNX node and returns its outputs.
  
  Args:
      op_name (str): The name of an ONNX op.
      input_names (list of str): The names of input values.
      num_outputs (int): The number of output values.
      **kwargs (dict): ONNX attributes of the node.
  
  Returns:
      A str of the output name when `num_outputs` is 1.
      A tuple of str of the output names otherwise.
docstr_tok: ["Creates","a","new","ONNX","node","and","returns","its","outputs",".","Args",":","op_name","(","str",")",":","The","name","of","an","ONNX","op",".","input_names","(","list","of","str",")",":","The","names","of","input","values",".","num_outputs","(","int",")",":","The","number","of","output","values",".","*","*","kwargs","(","dict",")",":","ONNX","attributes","of","the","node",".","Returns",":","A","str","of","the","output","name","when","`","num_outputs","`","is","1",".","A","tuple","of","str","of","the","output","names","otherwise","."]
code: def op(self, op_name, input_names, num_outputs=1, **kwargs):
      """Creates a new ONNX node and returns its outputs.
  
      Args:
          op_name (str): The name of an ONNX op.
          input_names (list of str): The names of input values.
          num_outputs (int): The number of output values.
          **kwargs (dict): ONNX attributes of the node.
  
      Returns:
          A str of the output name when `num_outputs` is 1.
          A tuple of str of the output names otherwise.
      """
      if num_outputs == 1:
          output_names = [self.node_name()]
      else:
          output_names = [
              "{}_{}".format(self.node_name(), i)
              for i in range(num_outputs)
          ]
      return self.op_output_named(
          op_name, input_names, output_names, **kwargs
      )
  
file_path: chainer/onnx_chainer/onnx_helper.py
imports: import onnx
label_desc: Use image node_id 3 for calling the GraphBuilder obj's underlying member method code with example usage: obj.op(op_name, input_names, num_outputs) and returns: self