class_docstr: This policy only updates at the end of the run.
class_docstr_tok: ["This","policy","only","updates","at","the","end","of","the","run","."]
code: def finish(self) -> None:
      # We use copy=False to avoid possibly expensive copies, and because
      # user files shouldn't still be changing at the end of the run.
      self._last_sync = os.path.getmtime(self.file_path)
      self._file_pusher.file_changed(
          self.save_name, self.file_path, copy=False
      )
  
imports: import abc
  import fnmatch
  import glob
  import logging
  import os
  import queue
  import time
  from typing import TYPE_CHECKING, Any, Mapping, MutableMapping, MutableSet, Optional
  from wandb import util
  from wandb.sdk.interface.interface import GlobStr
  from wandb.sdk.lib.paths import LogicalPath
label_desc: Use image node_id 2 for calling the PolicyEnd obj's underlying member method code with example usage: obj.finish() without return types