def METHOD_NAME(sagemaker_session, vpc_id):
    ec2_resource = sagemaker_session.boto_session.resource("ec2")
    security_group_ids = []
    vpc = ec2_resource.Vpc(vpc_id)
    for sg in vpc.security_groups.all():
        security_group_ids.append(sg.id)
    return security_group_ids