def _UploadObject(cls, args, thread_state=None):
  gsutil_api = GetCloudApiInstance(cls, thread_state)
  if args.need_to_slice:
    cls.PerformSlicedUpload(args.file_name, args.object_name, args.use_file,
                            gsutil_api)
  else:
    cls.Upload(args.file_name, args.object_name, gsutil_api, args.use_file)
Function argument to apply for performing fanned parallel uploads.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/commands/perfdiag.py/_UploadObject