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 _set_output_blobs(self, net, context):
      record = self.input_record.get(
          context, self.default_output_record
      )
      assert record is not None, (
          "{} context is not in input record without providing default"
          " output".format(context)
      )
      for in_blob, out_blob in zip(
          record.field_blobs(), self.output_schema.field_blobs()
      ):
          if self.use_copy:
              net.Copy(in_blob, out_blob)
          else:
              net.Alias(in_blob, out_blob)
  
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 2 for calling the SelectRecordByContext obj's underlying member method code with example usage: obj._set_output_blobs(net, context) without return types