def primary_key_tuple(self, item):
        """ Get the primary key tuple from an item """
        if self.range_key is None:
            return (item[self.hash_key.name],)
        else:
            return (item[self.hash_key.name], item[self.range_key.name])
Get the primary key tuple from an item