<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_parent_objective_banks(self, objective_bank_id):
 """Tests if the ``ObjectiveBank`` has any parents. arg: objective_bank_id (osid.id.Id):
 the ``Id`` of an objective bank return: (boolean) - ``true`` if the objective bank has parents, ``false`` otherwise raise: NotFound - ``objective_bank_id`` is not found raise: NullArgument - ``objective_bank_id`` is ``null`` raise: OperationFailed - unable to complete request raise: PermissionDenied - authorization failure *compliance: mandatory -- This method must be implemented.* """

        # 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=objective_bank_id)
        return self._hierarchy_session.has_parents(id_=objective_bank_id)