class_docstr: Syncer between local filesystem and a `storage_filesystem`.
class_docstr_tok: ["Syncer","between","local","filesystem","and","a","`","storage_filesystem","`","."]
code: def _sync_up_command(
      self, local_path: str, uri: str, exclude: Optional[List] = None
  ) -> Tuple[Callable, Dict]:
      # TODO(justinvyu): Defer this cleanup up as part of the
      # external-facing Syncer deprecation.
      fs_path = uri
      return (
          _upload_to_fs_path,
          dict(
              local_path=local_path,
              fs=self.storage_filesystem,
              fs_path=fs_path,
              exclude=exclude,
          ),
      )
  
imports: import dataclasses
  import fnmatch
  import logging
  import os
  import shutil
  from pathlib import Path
  from typing import TYPE_CHECKING, Callable, Dict, List, Optional, Tuple, Type, Union
  from ray._private.storage import _get_storage_uri
  from ray.air._internal.filelock import TempFileLock
  from ray.train._internal.syncer import SyncConfig, Syncer, _BackgroundSyncer
  from ray.train.constants import _get_defaults_results_dir
label_desc: Use image node_id 2 for calling the _FilesystemSyncer obj's underlying member method code with example usage: obj._sync_up_command(local_path, uri, exclude) and returns: _upload_to_fs_path,  dict