<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getUniqueFeaturesLocationsInObject(self, name):
 """ Return two sets. The first set contains the unique locations Ids in the object. The second set contains the unique feature Ids in the object. """

    uniqueFeatures = set()
    uniqueLocations = set()
    for pair in self.objects[name]:
      uniqueLocations = uniqueLocations.union({pair[0]})
      uniqueFeatures = uniqueFeatures.union({pair[1]})

    return uniqueLocations, uniqueFeatures