docstr: Upload source to target.
  
  Infers target dir from basename if not stated.
docstr_tok: ["Upload","source","to","target",".","Infers","target","dir","from","basename","if","not","stated","."]
code: def upload(
      self, source: Optional[str] = None, target: Optional[str] = None
  ):
      """Upload source to target.
  
      Infers target dir from basename if not stated.
      """
      raise NotImplementedError
  
file_path: ray/release/ray_release/file_manager/file_manager.py
imports: import abc
  from typing import Optional
  from ray_release.cluster_manager.cluster_manager import ClusterManager
label_desc: Use image node_id 2 for calling the FileManager obj's underlying member method code with example usage: obj.upload(source, target) without return types