class_docstr: Allowing model to follow different paths for each instantiation context and
  join later at some point. The implementation use `Alias` because schema
  sometimes clone fields internally so we need static blob name for output
class_docstr_tok: ["Allowing","model","to","follow","different","paths","for","each","instantiation","context","and","join","later","at","some","point",".","The","implementation","use","`","Alias","`","because","schema","sometimes","clone","fields","internally","so","we","need","static","blob","name","for","output"]
code: def add_train_ops(self, net):
      self._set_output_blobs(net, InstantiationContext.TRAINING)
  
file_path: pytorch/caffe2/python/layers/select_record_by_context.py
imports: import logging
  from caffe2.python import schema
  from caffe2.python.layers.layers import InstantiationContext, ModelLayer
label_desc: Use image node_id 5 for calling the SelectRecordByContext obj's underlying member method code with example usage: obj.add_train_ops(net) without return types