def METHOD_NAME(self, slab_name, slab_obj):
    """
    (int): On success it will return the allocated slab object number, else it will return `0`.
    """
    slab_detail = self.data.get(slab_name, None)
    if slab_detail and slab_obj != 'name':
        return int(slab_detail.get(slab_obj, 0))