class_docstr: Context of converter
  
  This context shares names during exporting.
  
  Attributes:
      name_list (dict): list of being exported as ONNX node name with pinned
          or not, keyed by instance ID. When the target variable is
          ``chainer.Variable`` or ``chainer.Parameter``, instance ID of
          ``ndarray`` held by the variable is also put as key, because some
          functions like ``F.where`` internally unwrap variable.
class_docstr_tok: ["Context","of","converter","This","context","shares","names","during","exporting",".","Attributes",":","name_list","(","dict",")",":","list","of","being","exported","as","ONNX","node","name","with","pinned","or","not",",","keyed","by","instance","ID",".","When","the","target","variable","is","``","chainer.Variable","``","or","``","chainer.Parameter","``",",","instance","ID","of","``","ndarray","``","held","by","the","variable","is","also","put","as","key",",","because","some","functions","like","``","F.where","``","internally","unwrap","variable","."]
docstr: Set ONNX node name
  
  Arguments:
      variable (var): target variable
      name (str): name to be exported as ONNX node name
      pinned (bool): if ``True``, the name will not be overwritten in
          subsequence process.
docstr_tok: ["Set","ONNX","node","name","Arguments",":","variable","(","var",")",":","target","variable","name","(","str",")",":","name","to","be","exported","as","ONNX","node","name","pinned","(","bool",")",":","if","``","True","``",",","the","name","will","not","be","overwritten","in","subsequence","process","."]
code: def set_name(self, variable, name, pinned=False):
      """Set ONNX node name
  
      Arguments:
          variable (var): target variable
          name (str): name to be exported as ONNX node name
          pinned (bool): if ``True``, the name will not be overwritten in
              subsequence process.
      """
  
      str_id = id(variable)
      assert (
          str_id not in self.name_list or not self.name_list[str_id][1]
      )
      self.name_list[str_id] = (name, pinned)
      if isinstance(variable, (chainer.Variable, chainer.Parameter)):
          array_id = id(variable.array)
          self.name_list[array_id] = (name, pinned)
  
file_path: chainer/onnx_chainer/context.py
imports: import chainer
  import onnx
  from onnx import numpy_helper
  from onnx_chainer import onnx_helper
label_desc: Use image node_id 3 for calling the Context obj's underlying member method code with example usage: obj.set_name(variable, name, pinned) without return types