docstr: A file uploader.
  
  Arguments:
      push_function: function(save_name, actual_path) which actually uploads
          the file.
      save_name: string logical location of the file relative to the run
          directory.
      path: actual string path of the file to upload on the filesystem.
docstr_tok: ["A","file","uploader",".","Arguments",":","push_function",":","function","(","save_name",",","actual_path",")","which","actually","uploads","the","file",".","save_name",":","string","logical","location","of","the","file","relative","to","the","run","directory",".","path",":","actual","string","path","of","the","file","to","upload","on","the","filesystem","."]
code: def __init__(
      self,
      stats: "stats.Stats",
      api: "internal_api.Api",
      file_stream: "file_stream.FileStreamApi",
      silent: bool,
      save_name: LogicalPath,
      path: "dir_watcher.PathStr",
      artifact_id: Optional[str],
      md5: Optional[str],
      copied: bool,
      save_fn: Optional["step_upload.SaveFn"],
      digest: Optional[str],
  ) -> None:
      """A file uploader.
  
      Arguments:
          push_function: function(save_name, actual_path) which actually uploads
              the file.
          save_name: string logical location of the file relative to the run
              directory.
          path: actual string path of the file to upload on the filesystem.
      """
      self._stats = stats
      self._api = api
      self._file_stream = file_stream
      self.silent = silent
      self.save_name = save_name
      self.save_path = path
      self.artifact_id = artifact_id
      self.md5 = md5
      self.copied = copied
      self.save_fn = save_fn
      self.digest = digest
      super().__init__()
  
file_path: wandb/wandb/filesync/upload_job.py
imports: import asyncio
  import logging
  import os
  from typing import TYPE_CHECKING, Optional
  import wandb
  from wandb.sdk.lib.paths import LogicalPath
label_desc: Use image node_id 1 to create a new UploadJob object  with example: obj = UploadJob(stats, api, file_stream, silent, save_name, path, artifact_id, md5, copied, save_fn, digest)