code: def template_record(self) -> BaseRecord:
      record = super().template_record()
      record.add_component(InstanceMasksRecordComponent())
      return record
  
imports: from icevision.imports import *
  from icevision.core import *
  from icevision.utils import *
  from icevision.parsers import *
label_desc: Use image node_id 2 for calling the COCOMaskParser obj's underlying member method code with example usage: obj.template_record() and returns: record