def METHOD_NAME(self, load_balancer_name):
    if elb.is_classic_load_balancer(load_balancer_name):
        instance_states = elb.get_health_of_instances(load_balancer_name)
    else:
        load_balancer_arn = load_balancer_name
        elbv2_target_groups = elbv2.get_target_groups_for_load_balancer(
            load_balancer_arn=load_balancer_arn
        )
        target_group_arns = [
            target_group['TargetGroupArn']
            for target_group in elbv2_target_groups
        ]
        instance_states = elbv2.get_instance_healths_from_target_groups(target_group_arns)
    return instance_states