@utilities.arguments_not_none<EOL><INDENT>def is_child_of_bank(self, id_, bank_id):<DEDENT>
<EOL>if self._catalog_session is not None:<EOL><INDENT>return self._catalog_session.is_child_of_catalog(id_=id_, catalog_id=bank_id)<EOL><DEDENT>return self._hierarchy_session.is_child(id_=bank_id, child_id=id_)<EOL>
Tests if a bank is a direct child of another.

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