fix occasional throttling exception and black format
# associate the trials with trial components
for trial_obj in trial_objs:
sagemaker_boto_client.associate_trial_component(
TrialName=trial_obj.trial_name, TrialComponentName=trial_component_obj.trial_component_name
)
botocore.exceptions.ClientError: An error occurred (ThrottlingException) when calling the AssociateTrialComponent operation (reached max retries: 4): Rate exceeded
fix occasional throttling exception and black format