code: def clone(id, path):
      
      try:
          experiment = ExperimentClient().get(normalize_job_name(id, use_config=False))
      except FloydException:
          experiment = ExperimentClient().get(id)
  
      task_instance_id = get_module_task_instance_id(experiment.task_instances)
      task_instance = TaskInstanceClient().get(task_instance_id) if task_instance_id else None
      if not task_instance:
          sys.exit("Cannot clone this version of the job. Try a different version.")
      module = ModuleClient().get(task_instance.module_id) if task_instance else None
  
      if path:
          # Download a directory from Code
          code_url = "{}/api/v1/download/artifacts/code/{}?is_dir=true&path={}".format(floyd.floyd_host,
                                                                                       experiment.id,
                                                                                       path)
      else:
          # Download the full Code
          code_url = "{}/api/v1/resources/{}?content=true&download=true".format(floyd.floyd_host,
                                                                                module.resource_id)
      ExperimentClient().download_tar(url=code_url,
                                      untar=True,
                                      delete_after_untar=True)
docs: - Download all files from a job
  
      Eg: alice/projects/mnist/1/
  
      Note: This will download the files that were originally uploaded at
      the start of the job.
  
      - Download files in a specific path from a job
  
      Specify the path to a directory and download all its files and subdirectories.
  
      Eg: --path models/checkpoint1