def upload_hyperparameters(self, hyperparams_json):
    try:
        s3_client = self.get_client()
        file_handle = io.BytesIO(hyperparams_json.encode())
        s3_client.upload_fileobj(file_handle, self.bucket, self.hyperparameters_key)
    except botocore.exceptions.ClientError:
        log_and_exit('Hyperparameters failed to upload', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_400)
    except Exception:
        log_and_exit('Hyperparameters failed to upload', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_500)
def upload_hyperparameters(self, hyperparams_json):
    try:
        s3_client = self.get_client()
        file_handle = io.BytesIO(hyperparams_json.encode())
        s3_client.upload_fileobj(file_handle, self.bucket, self.hyperparameters_key)
    except botocore.exceptions.ClientError:
        log_and_exit('Hyperparameters failed to upload', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_400)
    except Exception:
        log_and_exit('Hyperparameters failed to upload', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_500)