code: def _sync_up_command(
      self, local_path: str, uri: str, exclude: Optional[List] = None
  ) -> Tuple[Callable, Dict]:
      def upload_cmd(*args, **kwargs):
          with use_credentials(self.creds):
              return upload(*args, **kwargs)
  
      return upload_cmd, dict(lpath=local_path, rpath=uri)
  
file_path: ludwig/ludwig/hyperopt/syncer.py
imports: from typing import Any, Callable, Dict, List, Optional, Tuple
  from ray.tune.syncer import _BackgroundSyncer
  from ludwig.utils.data_utils import use_credentials
  from ludwig.utils.fs_utils import delete, download, upload
label_desc: Use image node_id 2 for calling the RemoteSyncer obj's underlying member method code with example usage: obj._sync_up_command(local_path, uri, exclude) and returns: upload_cmd,  dict, upload