<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getBoneHierarchy(self, action, unIndexArayCount):
 """Fills the given array with the index of each bone's parent in the skeleton associated with the given action"""


        fn = self.function_table.getBoneHierarchy
        pParentIndices = BoneIndex_t()
        result = fn(action, byref(pParentIndices), unIndexArayCount)
        return result, pParentIndices