def _get_serialization(self, obj, method):
        try:
            m = getattr(self, method or 'default')
        except __HOLE__:
            raise NoSerializationMethod('Serialization "%s" is not defined in serializer "%s" for object "%s"' % \
                (method, _SERIALIZERS_REGISTRY.get(obj.__class__, Serializer).__name__, obj.__class__.__name__))
        return Serialization(self.obj_name(m) or obj.__class__.__name__.lower(), m)
dataset/ETHPy150Open fiam/wapi/serializers/__init__.py/BaseSerializer._get_serialization