code: def save_file(client, bucket, data_file, items, dry_run=None):
      
      logger.debug('Writing {number_items} items to s3. Bucket: {bucket} Key: {key}'.format(
          number_items=len(items),
          bucket=bucket,
          key=data_file
      ))
  
      if not dry_run:
          return _put_to_s3(client, bucket, data_file, json.dumps(items))
docs: Tries to write JSON data to data file in S3.