def METHOD_NAME(self, instance):
    code_types = ",".join(
        [
            code
            for provider in instance.equipment_provider_manager._get_providers().values()
            for code in provider.code_types
        ]
    )
    if not code_types:
        abort(404, message='No code type exists into equipment provider')
    return "stop_point.has_code_type(" + code_types + ")"