code: def get_by_record_id(self, record_id):
      try:
          record = self._records[record_id]
          record.is_new = False
          return record
      except KeyError:
          record = self._records[record_id] = self.create_record_fn()
          record.set_record_id(record_id)
          record.is_new = True
          return record
  
file_path: icevision/icevision/data/record_collection.py
imports: from __future__ import annotations
  from icevision.imports import *
  from icevision.utils import *
  from icevision.core.record import BaseRecord, autofix_records
  from icevision.data.data_splitter import DataSplitter
label_desc: Use image node_id 2 for calling the RecordCollection obj's underlying member method code with example usage: obj.get_by_record_id(record_id) and returns: record, record