def set_defaults(event):
    """Set default values for optional arguments"""
    defaults = {
        "content": "",
        "security_groups": [],
        "assign_public_ip": True,
        "cmd_to_run": "",
        "image": "",
        "task_role_arn": "",
        "mountpoints": {},
        "task_memory": "512",
        "task_cpu": "256",
        "token": "",
        "log_stream_prefix": "task",
        "credentials_secret_arn": "",
        "metric_namespace": "",
        "metric_dimensions": {},
        "send_error_logs_to_stepfunctions": True,
    }

    return {**defaults, **event}