def get_dynamic_route_by_def_name(self, def_name, routes):
        try:
            return [i for i in routes if def_name in i.mapping.values()][0]
        except __HOLE__:
            return None
dataset/ETHPy150Open chibisov/drf-extensions/tests_app/tests/unit/routers/tests.py/ExtendedDefaultRouterTest.get_dynamic_route_by_def_name