code: def unload_records(build_batch):
      """This decorator function unloads records to not carry them around after batch creation"""
  
      def inner(records):
          tupled_output, records = build_batch(records)
          for record in records:
              record.unload()
          return tupled_output, records
  
      return inner
  
file_path: icevision/icevision/models/utils.py
imports: from icevision.imports import *
  from icevision.utils import *
  from icevision.core import *
  from icevision.data import *
  from icevision.parsers import *
  from icevision.data.dataset import Dataset
label_desc: Use image node_id 6 for calling a global function with example usage: unload_records(build_batch) and returns: inner, tupled_output,  records