<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_child_catalog(self, catalog_id, child_id):
 """Removes a child from a catalog. arg: catalog_id (osid.id.Id):
 the ``Id`` of a catalog arg: child_id (osid.id.Id):
 the ``Id`` of the new child raise: NotFound - ``catalog_id`` is not a parent of ``child_id`` raise: NullArgument - ``catalog_id`` or ``child_id`` is ``null`` raise: OperationFailed - unable to complete request raise: PermissionDenied - authorization failure occurred *compliance: mandatory -- This method must be implemented.* """

        # Implemented from template for
        # osid.resource.BinHierarchyDesignSession.remove_child_bin_template
        if self._catalog_session is not None:
            return self._catalog_session.remove_child_catalog(catalog_id=catalog_id, child_id=child_id)
        return self._hierarchy_session.remove_child(id_=catalog_id, child_id=child_id)