def is_child_of_book(self, id_, book_id):
        """Tests if a book is a direct child of another.

        arg:    id (osid.id.Id): an ``Id``
        arg:    book_id (osid.id.Id): the ``Id`` of a book
        return: (boolean) - ``true`` if the ``id`` is a child of
                ``book_id,``  ``false`` otherwise
        raise:  NotFound - ``book_id`` is not found
        raise:  NullArgument - ``id`` or ``book_id`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        *compliance: mandatory -- This method must be implemented.*
        *implementation notes*: If ``id`` not found return ``false``.

        """
        # Implemented from template for
        # osid.resource.BinHierarchySession.is_child_of_bin
        if self._catalog_session is not None:
            return self._catalog_session.is_child_of_catalog(id_=id_, catalog_id=book_id)
        return self._hierarchy_session.is_child(id_=book_id, child_id=id_)
def is_child_of_book ( self , id_ , book_id ) : if self . _catalog_session is not None : return self . _catalog_session . is_child_of_catalog ( id_ = id_ , catalog_id = book_id ) return self . _hierarchy_session . is_child ( id_ = book_id , child_id = id_ )
Tests if a book is a direct child of another.

        arg:    id (osid.id.Id): an ``Id``
        arg:    book_id (osid.id.Id): the ``Id`` of a book
        return: (boolean) - ``true`` if the ``id`` is a child of
                ``book_id,``  ``false`` otherwise
        raise:  NotFound - ``book_id`` is not found
        raise:  NullArgument - ``id`` or ``book_id`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        *compliance: mandatory -- This method must be implemented.*
        *implementation notes*: If ``id`` not found return ``false``.