def METHOD_NAME(self, request):
    if self.testing_facility:
        test_facility = request.user in self.testing_facility.users.all()
    return (
        request.user.is_superuser
        or request.user == self.consultation.facility.created_by
        or (
            request.user.district == self.consultation.facility.district
            and request.user.user_type >= User.TYPE_VALUE_MAP["DistrictLabAdmin"]
        )
        or (
            request.user.state == self.consultation.facility.state
            and request.user.user_type >= User.TYPE_VALUE_MAP["StateLabAdmin"]
        )
        or request.user in self.patient.facility.users.all()
        or test_facility
    )