def upload_game_records(data, from_network=None, env=None, args=None):
    ' Upload the specified game records to google storage. '
    dest_file = 'games/{}.sgf'.format(datetime.now().strftime('%Y%m%d.%H%M'))
    print('Uploading', dest_file)
    blob = bucket.blob(dest_file)
    blob.metadata = {'args': json.dumps(args, sort_keys=True), 'env': json.dumps(env, sort_keys=True), 'network': from_network, 'rev': getenv('GIT_REV')}
    blob.upload_from_string(data, 'application/x-go-sgf')
Upload the specified game records to google storage.
def upload_game_records(data, from_network=None, env=None, args=None):
    '  '
    dest_file = 'games/{}.sgf'.format(datetime.now().strftime('%Y%m%d.%H%M'))
    print('Uploading', dest_file)
    blob = bucket.blob(dest_file)
    blob.metadata = {'args': json.dumps(args, sort_keys=True), 'env': json.dumps(env, sort_keys=True), 'network': from_network, 'rev': getenv('GIT_REV')}
    blob.upload_from_string(data, 'application/x-go-sgf')