@utilities.arguments_not_none<EOL><INDENT>def is_parent_of_family(self, id_, family_id):<DEDENT>
<EOL>if self._catalog_session is not None:<EOL><INDENT>return self._catalog_session.is_parent_of_catalog(id_=id_, catalog_id=family_id)<EOL><DEDENT>return self._hierarchy_session.is_parent(id_=family_id, parent_id=id_)<EOL>
Tests if an ``Id`` is a direct parent of a family.

        arg:    id (osid.id.Id): an ``Id``
        arg:    family_id (osid.id.Id): the ``Id`` of a family
        return: (boolean) - ``true`` if this ``id`` is a parent of
                ``family_id,``  ``false`` otherwise
        raise:  NotFound - ``family_id`` is not found
        raise:  NullArgument - ``id`` or ``family_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``.