code: def setup_job(manager, job_id, tool_id, tool_version, use_metadata=False):
      
      job_id = manager.setup_job(job_id, tool_id, tool_version)
      if use_metadata:
          manager.enable_metadata_directory(job_id)
      return build_job_config(
          job_id=job_id,
          job_directory=manager.job_directory(job_id),
          system_properties=manager.system_properties(),
          tool_id=tool_id,
          tool_version=tool_version
      )
docs: Setup new job from these inputs and return dict summarizing state
      (used to configure command line).