code: def has_parent_books(self, book_id):
          
          # Implemented from template for
          # osid.resource.BinHierarchySession.has_parent_bins
          if self._catalog_session is not None:
              return self._catalog_session.has_parent_catalogs(catalog_id=book_id)
          return self._hierarchy_session.has_parents(id_=book_id)
docs: Tests if the ``Book`` has any parents.
  
          arg:    book_id (osid.id.Id): a book ``Id``
          return: (boolean) - ``true`` if the book has parents, f ``alse``
                  otherwise
          raise:  NotFound - ``book_id`` is not found
          raise:  NullArgument - ``book_id`` is ``null``
          raise:  OperationFailed - unable to complete request
          raise:  PermissionDenied - authorization failure
          *compliance: mandatory -- This method must be implemented.*