docstr: This function will be called right before exiting after completing iteration
  over dataset
code: def on_finish(self) -> None:  # noqa: B027
      """
      This function will be called right before exiting after completing iteration
      over dataset
      """
      pass
  
imports: import abc
  import json
  import logging
  import math
  import os
  import pathlib
  import uuid
  import warnings
  from typing import TYPE_CHECKING, Any, ContextManager, Dict, Optional, Set, Sized, Type
  import torch
  import torch.distributed
  from torch import nn
  from torch.utils import data
  import determined
  from determined import common, core, pytorch
label_desc: Use image node_id 4 for calling the TorchBatchProcessor obj's underlying member method code with example usage: obj.on_finish() without return types