def get_model_from_key(self, key):
        """
        Given a key, which is defined by the partition and used to route queries, returns the
        Model which represents the shard.
        """
        shards = self.model._shards
        return shards.nodes[shards.num_shards % key]
dataset/ETHPy150Open disqus/sharding-example/sqlshards/db/shards/manager.py/MasterPartitionManager.get_model_from_key/swapped operands of `%`