def get(self, cls, id, default=None):
        typemap = {
            busbus.Agency: GTFSAgency,
            busbus.Stop: GTFSStop,
            busbus.Route: GTFSRoute,
        }
        try:
            cls = util.entity_type(cls)
        except TypeError:
            return default
        if cls in typemap:
            return typemap[cls].from_id(self, id, default)
        else:
            return default
dataset/ETHPy150Open spaceboats/busbus/busbus/provider/gtfs.py/GTFSMixin.get/original