code: def by_id(cls, oid):
          
          if oid:
              d = cls.collection.find_one(ObjectId(oid))
              if d:
                  return cls(**d)
docs: Find a model object by its ``ObjectId``,
          ``oid`` can be string or ObjectId