@classmethod
  def get_by_id(cls, ids, parent=None, **kwargs):
    if isinstance(parent, Model):
      parent = parent.key()
    ids, multiple = datastore.NormalizeAndTypeCheck(ids, (int, long))
    keys = [datastore.Key.from_path(cls.kind(), id, parent=parent)
            for id in ids]
    if multiple:
      return get(keys, **kwargs)
    else:
      return get(keys[0], **kwargs)
:type n: int
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/db/__init__.py/Model.get_by_id--crossover with--dataset/ETHPy150Open kamyu104/LeetCode/Python/super-ugly-number.py/Solution2.nthSuperUglyNumber